Rework API interface passed into plugins from ResourceManagerInterface to OpenRGBPluginAPIInterface

This commit is contained in:
Adam Honse committed 2026-05-07 17:24:45 -05:00
1 parent 0144a6a150
commit 94981f107b
11 files changed
+485 -42

No files matched your search

+13
View File
@@ -465,6 +465,19 @@ void ResourceManager::UpdateDeviceList()
rgb_controllers.push_back(rgb_controllers_hw[rgb_controller_idx]);
}
/*-----------------------------------------------------*\
| Insert plugin controllers into controller list |
\*-----------------------------------------------------*/
if(plugin_manager)
{
std::vector<RGBController*> rgb_controllers_plugins = plugin_manager->GetRGBControllers();
for(std::size_t rgb_controller_idx = 0; rgb_controller_idx < rgb_controllers_plugins.size(); rgb_controller_idx++)
{
rgb_controllers.push_back(rgb_controllers_plugins[rgb_controller_idx]);
}
}
/*-----------------------------------------------------*\
| Insert client controllers into controller list |
\*-----------------------------------------------------*/