From 78955de65f6b2c6be583eb52f989f89eac894f2a Mon Sep 17 00:00:00 2001 From: TheRogueZeta <6479694-TheRogueZeta@users.noreply.gitlab.com> Date: Sat, 22 May 2021 15:11:27 -0700 Subject: [PATCH] Get DMI info for MSI USB boards --- .../MSIMysticLightControllerDetect.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Controllers/MSIMysticLightController/MSIMysticLightControllerDetect.cpp b/Controllers/MSIMysticLightController/MSIMysticLightControllerDetect.cpp index be47a426e..b8ba9b850 100644 --- a/Controllers/MSIMysticLightController/MSIMysticLightControllerDetect.cpp +++ b/Controllers/MSIMysticLightController/MSIMysticLightControllerDetect.cpp @@ -3,6 +3,7 @@ #include "MSIMysticLight185Controller.h" #include "RGBController_MSIMysticLight162.h" #include "RGBController_MSIMysticLight185.h" +#include "dependencies/dmiinfo.h" #define MSI_USB_VID 0x1462 @@ -29,9 +30,10 @@ void DetectMSIMysticLight162Controllers(hid_device_info* info, const std::string if( dev ) { + DMIInfo dmi; MSIMysticLight162Controller* controller = new MSIMysticLight162Controller(dev, info->path); RGBController_MSIMysticLight162* rgb_controller = new RGBController_MSIMysticLight162(controller); - + rgb_controller->name = "MSI " + dmi.getMainboard(); ResourceManager::get()->RegisterRGBController(rgb_controller); } } /* DetectMSIMysticLight162Controllers() */ @@ -50,9 +52,10 @@ void DetectMSIMysticLight185Controllers(hid_device_info* info, const std::string if( dev ) { + DMIInfo dmi; MSIMysticLight185Controller* controller = new MSIMysticLight185Controller(dev, info->path); RGBController_MSIMysticLight185* rgb_controller = new RGBController_MSIMysticLight185(controller); - + rgb_controller->name = "MSI " + dmi.getMainboard(); ResourceManager::get()->RegisterRGBController(rgb_controller); } } /* DetectMSIMysticLight185Controllers() */