From f08ae677e8ca8f5f02da3faf046de04156b64569 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Sun, 10 Jan 2016 13:08:19 +0100 Subject: [PATCH] Disable gfx logging in debug by default. --- UI/NativeApp.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index ed8c845d2..521e90cba 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -356,7 +356,6 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch logger = new AndroidLogger(); LogManager::Init(); - LogManager *logman = LogManager::GetInstance(); g_Config.AddSearchPath(user_data_path); g_Config.AddSearchPath(g_Config.memStickDirectory + "PSP/SYSTEM/"); @@ -364,6 +363,7 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch g_Config.Load(); g_Config.externalDirectory = external_dir; #endif + LogManager *logman = LogManager::GetInstance(); #ifdef ANDROID // On Android, create a PSP directory tree in the external_dir, @@ -453,10 +453,12 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch logman->AddListener(type, logger); #endif } - // Special hack for G3D as it's very spammy. Need to make a flag for this. - if (!gfxLog) - logman->SetLogLevel(LogTypes::G3D, LogTypes::LERROR); #endif + // Special hack for G3D as it's very spammy. Need to make a flag for this. + if (!gfxLog) { + logman->SetLogLevel(LogTypes::G3D, LogTypes::LERROR); + logman->SetLogLevel(LogTypes::SCEGE, LogTypes::LERROR); + } // Allow the lang directory to be overridden for testing purposes (e.g. Android, where it's hard to // test new languages without recompiling the entire app, which is a hassle). const std::string langOverridePath = g_Config.memStickDirectory + "PSP/SYSTEM/lang/";