Add a restarting flag to NativeInit/NativeShutdown.

Will be used externally.  Also cleanup some LogManager init/shutdown in
case these are called multiple times on Windows.
This commit is contained in:
Unknown W. Brackets committed 2017-04-15 16:30:37 -07:00
1 parent bf02f7d98b
commit 638a015ced
3 files changed
+27 -3

No files matched your search

+2 -1
View File
@@ -1094,7 +1094,8 @@ void Config::Save() {
control->Delete("DPadRadius");
IniFile::Section *log = iniFile.GetOrCreateSection(logSectionName);
LogManager::GetInstance()->SaveConfig(log);
if (LogManager::GetInstance())
LogManager::GetInstance()->SaveConfig(log);
if (!iniFile.Save(iniFilename_.c_str())) {
ERROR_LOG(LOADER, "Error saving config - can't write ini %s", iniFilename_.c_str());