mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-25 08:14:45 +02:00
Use ReadEntireFile() a few more places.
This fixes one or two minor memory leaks.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user