mirror of
https://github.com/jakcron/nstool
synced 2024-11-15 02:06:40 +00:00
[fnd] Fix type in WriteFile().
This commit is contained in:
parent
79e2ef5fd2
commit
70145ce354
1 changed files with 2 additions and 2 deletions
|
@ -40,7 +40,7 @@ void FileIO::ReadFile(const std::string& path, MemoryBlob & blob)
|
|||
|
||||
void FileIO::WriteFile(const std::string& path, const MemoryBlob & blob)
|
||||
{
|
||||
WriteFile(blob.data(), blob.size());
|
||||
WriteFile(path, blob.data(), blob.size());
|
||||
}
|
||||
|
||||
void fnd::FileIO::WriteFile(const std::string & path, const u8 * data, size_t len)
|
||||
|
@ -63,7 +63,7 @@ void fnd::FileIO::WriteFile(const std::string & path, const u8 * data, size_t le
|
|||
|
||||
if (filesz)
|
||||
{
|
||||
fwrite(blob.data() + filepos, 1, filesz, fp);
|
||||
fwrite(data + filepos, 1, filesz, fp);
|
||||
}
|
||||
|
||||
fclose(fp);
|
||||
|
|
Loading…
Reference in a new issue