mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-23 01:37:48 -05:00
Split CLI processing into pre- and post-detection functions and add --localconfig and --nodetect options
This commit is contained in:
@@ -284,6 +284,12 @@ const char *ResourceManager::GetDetectionString()
|
||||
return (detection_string);
|
||||
}
|
||||
|
||||
void ResourceManager::SetConfigurationDirectory(std::string directory)
|
||||
{
|
||||
settings_manager->LoadSettings(directory + "OpenRGB.json");
|
||||
profile_manager->SetConfigurationDirectory(directory);
|
||||
}
|
||||
|
||||
void ResourceManager::Cleanup()
|
||||
{
|
||||
ResourceManager::get()->WaitForDeviceDetection();
|
||||
|
||||
Reference in New Issue
Block a user