mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-04-04 22:24:12 -04:00
Store name in DreamCheekyController to avoid setting it in detector
This commit is contained in:
@@ -13,10 +13,11 @@
|
||||
#include "DreamCheekyController.h"
|
||||
#include "StringUtils.h"
|
||||
|
||||
DreamCheekyController::DreamCheekyController(hid_device* dev_handle, const char* path)
|
||||
DreamCheekyController::DreamCheekyController(hid_device* dev_handle, const char* path, std::string dev_name)
|
||||
{
|
||||
dev = dev_handle;
|
||||
location = path;
|
||||
name = dev_name;
|
||||
|
||||
/*-----------------------------------------------------*\
|
||||
| The Dream Cheeky Webmail Notifier requires four |
|
||||
@@ -43,6 +44,11 @@ std::string DreamCheekyController::GetDeviceLocation()
|
||||
return("HID: " + location);
|
||||
}
|
||||
|
||||
std::string DreamCheekyController::GetNameString()
|
||||
{
|
||||
return(name);
|
||||
}
|
||||
|
||||
std::string DreamCheekyController::GetSerialString()
|
||||
{
|
||||
wchar_t serial_string[128];
|
||||
|
||||
Reference in New Issue
Block a user