Rework RGBControllers and detectors that set string fields other than name outside of the RGBController

This commit is contained in:
Adam Honse
2025-07-31 18:36:06 -05:00
parent 6a472437bb
commit abd34f1810
15 changed files with 40 additions and 27 deletions

View File

@@ -227,9 +227,9 @@ void DetectLianLiGAIITrinity(hid_device_info* info, const std::string& /*name*/)
if(dev)
{
LianLiGAIITrinityController* controller = new LianLiGAIITrinityController(dev);
LianLiGAIITrinityController* controller = new LianLiGAIITrinityController(dev, info->path);
RGBController_LianLiGAIITrinity* rgb_controller = new RGBController_LianLiGAIITrinity(controller);
rgb_controller->location = "HID: " + std::string(info->path);
ResourceManager::get()->RegisterRGBController(rgb_controller);
}
}