From 553b284e95a08ba7bb31e4de72b47bf3b8192252 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 9 Feb 2014 14:13:46 -0800 Subject: [PATCH] Skip reporting when fonts do not exist. I'm really tired of all the "no font" reports that aren't really valid. --- Core/Reporting.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Core/Reporting.cpp b/Core/Reporting.cpp index 8486d99053..766a091ba5 100644 --- a/Core/Reporting.cpp +++ b/Core/Reporting.cpp @@ -22,6 +22,7 @@ #include "Core/Config.h" #include "Core/SaveState.h" #include "Core/System.h" +#include "Core/FileSystems/MetaFileSystem.h" #include "Core/HLE/sceDisplay.h" #include "Core/HLE/sceKernelMemory.h" #include "Core/ELF/ParamSFO.h" @@ -269,6 +270,12 @@ namespace Reporting // TODO: Numbers to avoid dependency on GLES code. if (g_Config.iRenderingMode >= FBO_READFBOMEMORY_MIN) return false; + + // Some users run the exe from a zip or something, and don't have fonts. + // This breaks things, but let's not report it since it's confusing. + if (!pspFileSystem.GetFileInfo("flash0:/font").exists) + return false; + return true; }