mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-05 06:34:25 -04:00
Store name in MSIOptixController to avoid setting it in detector
This commit is contained in:
@@ -13,11 +13,11 @@
|
||||
#include "MSIOptixController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
MSIOptixController::MSIOptixController(hid_device* dev_handle, const hid_device_info& info)
|
||||
MSIOptixController::MSIOptixController(hid_device* dev_handle, const hid_device_info& info, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
version = "";
|
||||
dev = dev_handle;
|
||||
location = info.path;
|
||||
name = dev_name;
|
||||
}
|
||||
|
||||
MSIOptixController::~MSIOptixController()
|
||||
@@ -30,6 +30,11 @@ std::string MSIOptixController::GetDeviceLocation()
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string MSIOptixController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string MSIOptixController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
@@ -43,11 +48,6 @@ std::string MSIOptixController::GetSerialString()
|
||||
return(StringUtils::wstring_to_string(serial_string));
|
||||
}
|
||||
|
||||
std::string MSIOptixController::GetFirmwareVersion()
|
||||
{
|
||||
return(version);
|
||||
}
|
||||
|
||||
unsigned char MSIOptixController::GetMysteriousFlag(unsigned char mode_value)
|
||||
{
|
||||
switch(mode_value)
|
||||
|
||||
Reference in New Issue
Block a user