Maintain a list of created virtual controllers in the OpenRGBPluginAPI object and only allow registering virtual controllers that exist in this list

This commit is contained in:
Adam Honse
2026-07-11 02:57:34 -05:00
parent ba33ff0c35
commit a0cee2ce2b
2 changed files with 34 additions and 0 deletions

View File

@@ -67,6 +67,7 @@ public:
/*-----------------------------------------------------*\
| RGBControllers registered by plugin |
\*-----------------------------------------------------*/
std::vector<RGBController*> created_controllers;
std::vector<RGBController*> rgb_controllers;
private: