mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 22:45:55 -04:00
Split CLI processing into pre- and post-detection functions and add --localconfig and --nodetect options
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user