mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Module: Cleanup file read pattern.
Let's always use ReadEntireFile() when we can.
This commit is contained in:
1 parent
199bfe4596
commit
d473aa6db0
3 files changed
+17
-42
No files matched your search
@@ -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