mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-01-14 18:17:55 -05:00
[WIP] SDK Version 6 Updates
* SDK Protocol
* Server sends its name to client
* ProfileManager
* Rename existing profile commands
* Add Upload Profile, Download Profile, and Get Active Profile commands
* SettingsManager
* Add Get, Set, and Save Settings commands
* NetworkServer
* Formatting cleanup
* Use per-controller threads for handling NetworkServer controller-specific packets to avoid delays from controller mutexes
* NetworkClient
* Formatting cleanup
* RGBController
* Clean up and modularize descriptor functions
This commit is contained in:
@@ -194,6 +194,15 @@ ResourceManager::ResourceManager()
|
||||
server = new NetworkServer(rgb_controllers_hw);
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Set server name |
|
||||
\*-----------------------------------------------------*/
|
||||
std::string titleString = "OpenRGB ";
|
||||
titleString.append(VERSION_STRING);
|
||||
|
||||
server->SetName(titleString);
|
||||
server->SetSettingsManager(settings_manager);
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Enable legacy SDK workaround in server if configured |
|
||||
\*-----------------------------------------------------*/
|
||||
@@ -1797,6 +1806,7 @@ void ResourceManager::InitCoroutine()
|
||||
| detection if the local server was connected |
|
||||
\*---------------------------------------------*/
|
||||
auto_connection_active = true;
|
||||
profile_manager->UpdateProfileList();
|
||||
DisableDetection();
|
||||
}
|
||||
|
||||
@@ -2123,3 +2133,13 @@ bool ResourceManager::IsAnyDimmDetectorEnabled(json &detector_settings)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ResourceManager::IsLocalClient()
|
||||
{
|
||||
return(auto_connection_active);
|
||||
}
|
||||
|
||||
NetworkClient* ResourceManager::GetLocalClient()
|
||||
{
|
||||
return(auto_connection_client);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user