Store name in BloodyB820RController to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-01 11:37:40 -05:00
parent 9c26f79ca6
commit b8628bb495
4 changed files with 12 additions and 5 deletions

View file

@ -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);
}