mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-22 18:55:29 +00:00
[fnd] Fix type in WriteFile().
This commit is contained in:
parent
79e2ef5fd2
commit
70145ce354
|
@ -40,7 +40,7 @@ void FileIO::ReadFile(const std::string& path, MemoryBlob & blob)
|
||||||
|
|
||||||
void FileIO::WriteFile(const std::string& path, const 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)
|
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)
|
if (filesz)
|
||||||
{
|
{
|
||||||
fwrite(blob.data() + filepos, 1, filesz, fp);
|
fwrite(data + filepos, 1, filesz, fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|
Loading…
Reference in a new issue