Disable gfx logging in debug by default.

This commit is contained in:
Henrik Rydgard 2016-01-10 13:08:19 +01:00 committed by Unknown W. Brackets
parent 58b07e00d7
commit f08ae677e8

View File

@ -356,7 +356,6 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
logger = new AndroidLogger(); logger = new AndroidLogger();
LogManager::Init(); LogManager::Init();
LogManager *logman = LogManager::GetInstance();
g_Config.AddSearchPath(user_data_path); g_Config.AddSearchPath(user_data_path);
g_Config.AddSearchPath(g_Config.memStickDirectory + "PSP/SYSTEM/"); 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.Load();
g_Config.externalDirectory = external_dir; g_Config.externalDirectory = external_dir;
#endif #endif
LogManager *logman = LogManager::GetInstance();
#ifdef ANDROID #ifdef ANDROID
// On Android, create a PSP directory tree in the external_dir, // 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); logman->AddListener(type, logger);
#endif #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 #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 // 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). // test new languages without recompiling the entire app, which is a hassle).
const std::string langOverridePath = g_Config.memStickDirectory + "PSP/SYSTEM/lang/"; const std::string langOverridePath = g_Config.memStickDirectory + "PSP/SYSTEM/lang/";