mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-09-14 14:17:46 -04: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:
1 parent
5b15251d46
commit
5b68efd09f
6 files changed
+275
-204
No files matched your search
@@ -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