Reduce logspam from fonts, and a less angry error message for missing textures.zip.

This commit is contained in:
Henrik Rydgård
2023-03-16 23:08:49 +01:00
parent 8484dd4917
commit 66d2fb2aa4
6 changed files with 29 additions and 15 deletions

View File

@@ -581,8 +581,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;