Use ReadEntireFile() a few more places.

This fixes one or two minor memory leaks.
This commit is contained in:
Unknown W. Brackets
2013-12-08 12:02:37 -08:00
parent 2d3f0758c1
commit 0636a65ad9
10 changed files with 105 additions and 112 deletions
+1 -1
View File
@@ -517,7 +517,7 @@ size_t MetaFileSystem::SeekFile(u32 handle, s32 position, FileMove type)
return 0;
}
u32 MetaFileSystem::ReadEntireFile(const std::string &filename, std::string &data) {
u32 MetaFileSystem::ReadEntireFile(const std::string &filename, std::vector<u8> &data) {
int error = 0;
u32 handle = pspFileSystem.OpenWithError(error, filename, FILEACCESS_READ);
if (handle == 0)