mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
Optimize MetaFileSystem::ReadEntireFile
This commit is contained in:
@@ -588,7 +588,9 @@ int MetaFileSystem::ReadEntireFile(const std::string &filename, std::vector<u8>
|
||||
if (handle < 0)
|
||||
return handle;
|
||||
|
||||
size_t dataSize = (size_t)GetFileInfo(filename).size;
|
||||
SeekFile(handle, 0, FILEMOVE_END);
|
||||
size_t dataSize = GetSeekPos(handle);
|
||||
SeekFile(handle, 0, FILEMOVE_BEGIN);
|
||||
data.resize(dataSize);
|
||||
|
||||
size_t result = ReadFile(handle, (u8 *)&data[0], dataSize);
|
||||
|
||||
Reference in New Issue
Block a user