From 3ebf47bbd5acb88ea1e525198269503a7d649f98 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Mon, 3 Mar 2014 07:24:25 -0800 Subject: [PATCH] Oops, fix compat reports on Android. Always forget about the VFS thing... --- Core/Reporting.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Core/Reporting.cpp b/Core/Reporting.cpp index 960ef7a0c2..e4fbf11bdb 100644 --- a/Core/Reporting.cpp +++ b/Core/Reporting.cpp @@ -39,6 +39,7 @@ #include "base/buffer.h" #include "thread/thread.h" +#include "file/zip_read.h" #include #include @@ -334,8 +335,14 @@ namespace Reporting // 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 (!File::Exists(g_Config.flash0Directory + "/font")) +#if defined(USING_WIN_UI) || defined(APPLE) + if (!File::Exists(g_Config.flash0Directory + "/font/jpn0.pgf")) return false; +#else + FileInfo fo; + if (!VFSGetFileInfo("flash0/font/jpn0.pgf", &fo)) + return false; +#endif return !everUnsupported; }