Split CLI processing into pre- and post-detection functions and add --localconfig and --nodetect options

This commit is contained in:
Adam Honse committed 2020-12-01 23:51:56 -06:00
1 parent 72da8f362c
commit ddfcd1caf9
11 files changed
+330 -187

No files matched your search

+6 -1
View File
@@ -51,6 +51,11 @@ void SettingsManager::SetSettings(std::string settings_key, json new_settings)
void SettingsManager::LoadSettings(std::string filename)
{
/*---------------------------------------------------------*\
| Clear any stored settings before loading |
\*---------------------------------------------------------*/
settings_data.clear();
/*---------------------------------------------------------*\
| Store settings filename, so we can save to it later |
\*---------------------------------------------------------*/
@@ -101,4 +106,4 @@ void SettingsManager::SaveSettings()
settings_file.close();
}
}
}