Store name in GigabyteAorusCPUCoolerController to avoid setting it in detector

This commit is contained in:
Adam Honse
2025-08-08 11:35:21 -05:00
parent 6f9e164874
commit 7d0db424ec
4 changed files with 20 additions and 13 deletions

View File

@@ -36,9 +36,8 @@ void DetectGigabyteAorusCPUCoolerControllers(hid_device_info* info, const std::s
if(dev)
{
ATC800Controller* controller = new ATC800Controller(dev, info->path);
ATC800Controller* controller = new ATC800Controller(dev, info->path, name);
RGBController_AorusATC800* rgb_controller = new RGBController_AorusATC800(controller);
rgb_controller->name = name;
ResourceManager::get()->RegisterRGBController(rgb_controller);
}