mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-02-13 00:31:11 -05:00
Rework API interface passed into plugins from ResourceManagerInterface to OpenRGBPluginAPIInterface
This commit is contained in:
@@ -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_hw.size(); rgb_controller_idx++)
|
||||
{
|
||||
rgb_controllers.push_back(rgb_controllers_plugins[rgb_controller_idx]);
|
||||
}
|
||||
}
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| Insert client controllers into controller list |
|
||||
\*-----------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user