mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-10-02 15:24:46 -04:00
Rework API interface passed into plugins from ResourceManagerInterface to OpenRGBPluginAPIInterface
This commit is contained in:
1 parent
0144a6a150
commit
94981f107b
11 files changed
+485
-42
No files matched your search
@@ -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 |
|
||||
\*-----------------------------------------------------*/
|
||||
|
||||
Reference in new issue
Block a user