Store name in NollieController to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-14 11:31:42 -05:00
parent 85af2e1ed7
commit 520b83a226
4 changed files with 30 additions and 19 deletions

View File

@@ -25,9 +25,8 @@ void DetectNollieControllers(hid_device_info* info, const std::string& name)
std::wstring product_str(product);
NollieController* controller = new NollieController(dev, info->path,info->product_id);
NollieController* controller = new NollieController(dev, info->path,info->product_id, name);
RGBController_Nollie* rgb_controller = new RGBController_Nollie(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);