Split CLI processing into pre- and post-detection functions and add --localconfig and --nodetect options
This commit is contained in:
parent
72da8f362c
commit
ddfcd1caf9
11 changed files with 330 additions and 187 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue