Store name in N5312AController to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-14 11:29:00 -05:00
parent f420e9bbbe
commit 85af2e1ed7
4 changed files with 17 additions and 17 deletions

View file

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