mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2025-12-23 23:37:48 -05:00
Add server option to disable the size check called legacy workaround, which can be enabled to allow some old SDK apps that didn't properly implement the size to still be used
This commit is contained in:
@@ -115,6 +115,7 @@ ResourceManager::ResourceManager()
|
||||
\*-------------------------------------------------------------------------*/
|
||||
json server_settings = settings_manager->GetSettings("Server");
|
||||
bool all_controllers = false;
|
||||
bool legacy_workaround = false;
|
||||
|
||||
if(server_settings.contains("all_controllers"))
|
||||
{
|
||||
@@ -130,6 +131,19 @@ ResourceManager::ResourceManager()
|
||||
server = new NetworkServer(rgb_controllers_hw);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*\
|
||||
| Enable legacy SDK workaround in server if configured |
|
||||
\*-------------------------------------------------------------------------*/
|
||||
if(server_settings.contains("legacy_workaround"))
|
||||
{
|
||||
legacy_workaround = server_settings["legacy_workaround"];
|
||||
}
|
||||
|
||||
if(legacy_workaround)
|
||||
{
|
||||
server->SetLegacyWorkaroundEnable(true);
|
||||
}
|
||||
|
||||
/*-------------------------------------------------------------------------*\
|
||||
| Initialize Saved Client Connections |
|
||||
\*-------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user