mirror of
https://github.com/izzy2lost/ppsspp.git
synced 2026-03-10 12:43:04 -07:00
Module: Cleanup file read pattern.
Let's always use ReadEntireFile() when we can.
This commit is contained in:
@@ -593,7 +593,7 @@ int MetaFileSystem::ReadEntireFile(const std::string &filename, std::vector<u8>
|
||||
SeekFile(handle, 0, FILEMOVE_BEGIN);
|
||||
data.resize(dataSize);
|
||||
|
||||
size_t result = ReadFile(handle, (u8 *)&data[0], dataSize);
|
||||
size_t result = ReadFile(handle, data.data(), dataSize);
|
||||
CloseFile(handle);
|
||||
|
||||
if (result != dataSize)
|
||||
|
||||
Reference in New Issue
Block a user