mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-13 01:29:41 +01:00
Refactor LogManager (remove GetInstance()). In headless, add option to log to OutputDebugString on Windows.
This commit is contained in:
1 parent
0f97578a35
commit
3ffff831c7
14 files changed
+117
-120
No files matched your search
+2
-3
@@ -1170,7 +1170,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
|
||||
#ifdef _DEBUG
|
||||
debugDefaults = true;
|
||||
#endif
|
||||
LogManager::GetInstance()->LoadConfig(log, debugDefaults);
|
||||
g_logManager.LoadConfig(log, debugDefaults);
|
||||
|
||||
Section *recent = iniFile.GetOrCreateSection("Recent");
|
||||
recent->Get("MaxRecent", &iMaxRecent, 60);
|
||||
@@ -1371,8 +1371,7 @@ bool Config::Save(const char *saveReason) {
|
||||
control->Delete("DPadRadius");
|
||||
|
||||
Section *log = iniFile.GetOrCreateSection(logSectionName);
|
||||
if (LogManager::GetInstance())
|
||||
LogManager::GetInstance()->SaveConfig(log);
|
||||
g_logManager.SaveConfig(log);
|
||||
|
||||
// Time tracking
|
||||
Section *playTime = iniFile.GetOrCreateSection("PlayTime");
|
||||
|
||||
Reference in new issue
Block a user