Store name in BloodyB820RController to avoid setting it in detector

This commit is contained in:
Adam Honse committed 2025-08-01 11:37:40 -05:00
1 parent 9c26f79ca6
commit b8628bb495
4 files changed
+12 -5

No files matched your search

@@ -46,9 +46,8 @@ void DetectBloodyB820R(hid_device_info* info, const std::string& name)
if(dev)
{
BloodyB820RController* controller = new BloodyB820RController(dev, info->path);
BloodyB820RController* controller = new BloodyB820RController(dev, info->path, name);
RGBController_BloodyB820R* rgb_controller = new RGBController_BloodyB820R(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);
}