Add read support to XPG Spectrix S40G in Windows

This commit is contained in:
Adam Honse
2021-11-19 13:29:52 -06:00
parent ebd509b768
commit 165d0f7790
4 changed files with 201 additions and 23 deletions

View File

@@ -64,18 +64,16 @@ void DetectSpectrixS40GControllers(std::vector<RGBController*>& rgb_controllers)
if(Search(dev_name))
{
new_xpg_s40g = new XPGSpectrixS40GController(0x67);
int result = new_xpg_s40g->SetHandle(dev_name);
new_xpg_s40g = new XPGSpectrixS40GController(dev_name, 0x67);
new_controller = new RGBController_XPGSpectrixS40G(new_xpg_s40g);
new_controller->name = "XPG Spectrix S40G";
new_controller->vendor = "XPG";
new_controller->type = DEVICE_TYPE_STORAGE;
rgb_controllers.push_back(new_controller);
if(result)
{
new_controller = new RGBController_XPGSpectrixS40G(new_xpg_s40g);
rgb_controllers.push_back(new_controller);
}
else
{
delete new_xpg_s40g;
}
}
} /* DetectSpectrixS40GControllers() */