Merge pull request #17137 from hrydgard/log-fixes

Log fixes
This commit is contained in:
Unknown W. Brackets
2023-03-17 18:51:47 -07:00
committed by GitHub
9 changed files with 41 additions and 20 deletions
+6 -2
View File
@@ -580,8 +580,12 @@ size_t MetaFileSystem::SeekFile(u32 handle, s32 position, FileMove type)
return 0;
}
int MetaFileSystem::ReadEntireFile(const std::string &filename, std::vector<u8> &data) {
int handle = OpenFile(filename, FILEACCESS_READ);
int MetaFileSystem::ReadEntireFile(const std::string &filename, std::vector<u8> &data, bool quiet) {
FileAccess access = FILEACCESS_READ;
if (quiet) {
access = (FileAccess)(access | FILEACCESS_PPSSPP_QUIET);
}
int handle = OpenFile(filename, access);
if (handle < 0)
return handle;