Store name in DreamCheekyController to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-06 11:31:48 -05:00
parent 13e8f70438
commit e6190ec275
4 changed files with 12 additions and 5 deletions

View File

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