LogManager: Hook up save/load, remove "long names"

This commit is contained in:
Henrik Rydgård committed 2017-03-06 11:44:35 +01:00
1 parent 50b722152a
commit cfe2621604
6 files changed
+62 -46

No files matched your search

+4 -2
View File
@@ -360,9 +360,8 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
}
#ifndef _WIN32
logger = new AndroidLogger();
LogManager::Init();
logger = new AndroidLogger();
g_Config.AddSearchPath(user_data_path);
g_Config.AddSearchPath(g_Config.memStickDirectory + "PSP/SYSTEM/");
@@ -461,7 +460,10 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
g_Config.currentDirectory = "./";
#endif
}
#endif
// Hard reset the logs. TODO: Get rid of this and read from config.
#ifndef _WIN32
for (int i = 0; i < LogTypes::NUMBER_OF_LOGS; i++) {
LogTypes::LOG_TYPE type = (LogTypes::LOG_TYPE)i;
logman->SetEnable(type, true);