Store name in HyperXMicrophoneController to avoid setting it in detector

This commit is contained in:
Adam Honse 2025-08-10 21:02:42 -05:00
parent 0eee6044b2
commit 0c0ffe7f5c
4 changed files with 13 additions and 5 deletions

View file

@ -37,9 +37,8 @@ void DetectHyperXMicrophoneControllers(hidapi_wrapper wrapper, hid_device_info*
if(dev)
{
HyperXMicrophoneController* controller = new HyperXMicrophoneController(wrapper, dev, info->path);
HyperXMicrophoneController* controller = new HyperXMicrophoneController(wrapper, dev, info->path, name);
RGBController_HyperXMicrophone *rgb_controller = new RGBController_HyperXMicrophone(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);
}