mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 14:35:01 -04:00
Rework RGBControllers and detectors that set string fields other than name outside of the RGBController
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user