mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-06 13:21:16 -05:00
Initial prototype of settings manager loads JSON settings file and E1.31 detector uses JSON data to detect devices
This commit is contained in:
@@ -50,6 +50,12 @@ ResourceManager::ResourceManager()
|
||||
\*-------------------------------------------------------------------------*/
|
||||
profile_manager = new ProfileManager(rgb_controllers);
|
||||
rgb_controllers_sizes = profile_manager->LoadProfileToList("sizes.ors");
|
||||
|
||||
/*-------------------------------------------------------------------------*\
|
||||
| Load settings from file |
|
||||
\*-------------------------------------------------------------------------*/
|
||||
settings_manager = new SettingsManager();
|
||||
settings_manager->LoadSettings("OpenRGB.json");
|
||||
}
|
||||
|
||||
ResourceManager::~ResourceManager()
|
||||
@@ -195,6 +201,11 @@ ProfileManager* ResourceManager::GetProfileManager()
|
||||
return(profile_manager);
|
||||
}
|
||||
|
||||
SettingsManager* ResourceManager::GetSettingsManager()
|
||||
{
|
||||
return(settings_manager);
|
||||
}
|
||||
|
||||
unsigned int ResourceManager::GetDetectionPercent()
|
||||
{
|
||||
return (detection_percent.load());
|
||||
|
||||
Reference in New Issue
Block a user