mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-04 20:54:16 -04:00
Update OpenRazer-Win32 DLLs to fix corrupt serial and version strings, enable reading these in OpenRGB.
This commit is contained in:
@@ -159,12 +159,6 @@ RGBController_OpenRazer::RGBController_OpenRazer(device * razer_device, device_f
|
||||
|
||||
unsigned int led_count = 0;
|
||||
|
||||
/*-----------------------------------------------------------------*\
|
||||
| Initialize buffer |
|
||||
\*-----------------------------------------------------------------*/
|
||||
memset(string_buf, 0xFF, sizeof(string_buf));
|
||||
string_buf[1023] = '\0';
|
||||
|
||||
/*-----------------------------------------------------------------*\
|
||||
| Start device at -1. This indicates the device was not detected |
|
||||
\*-----------------------------------------------------------------*/
|
||||
@@ -188,29 +182,17 @@ RGBController_OpenRazer::RGBController_OpenRazer(device * razer_device, device_f
|
||||
\*-----------------------------------------------------------------*/
|
||||
location = "";
|
||||
|
||||
/*-----------------------------------------------------------------*\
|
||||
| Initialize buffer |
|
||||
\*-----------------------------------------------------------------*/
|
||||
//memset(string_buf, 0xFF, sizeof(string_buf));
|
||||
//string_buf[1023] = '\0';
|
||||
|
||||
/*-----------------------------------------------------------------*\
|
||||
| Get the serial number from the dev path |
|
||||
\*-----------------------------------------------------------------*/
|
||||
//razer_functions->device_serial->show(razer_device, NULL, string_buf);
|
||||
//serial = string_buf;
|
||||
|
||||
/*-----------------------------------------------------------------*\
|
||||
| Initialize buffer |
|
||||
\*-----------------------------------------------------------------*/
|
||||
//memset(string_buf, 0xFF, sizeof(string_buf));
|
||||
//string_buf[1023] = '\0';
|
||||
razer_functions->device_serial->show(razer_device, NULL, string_buf);
|
||||
serial = string_buf;
|
||||
|
||||
/*-----------------------------------------------------------------*\
|
||||
| Get the firmware version from the dev path |
|
||||
\*-----------------------------------------------------------------*/
|
||||
//razer_functions->firmware_version->show(razer_device, NULL, string_buf);
|
||||
//version = string_buf;
|
||||
razer_functions->firmware_version->show(razer_device, NULL, string_buf);
|
||||
version = string_buf;
|
||||
|
||||
/*-----------------------------------------------------------------*\
|
||||
| Loop through all known devices to look for a name match |
|
||||
|
||||
BIN
dependencies/openrazer-win32/OpenRazer.dll
vendored
BIN
dependencies/openrazer-win32/OpenRazer.dll
vendored
Binary file not shown.
BIN
dependencies/openrazer-win32/OpenRazer64.dll
vendored
BIN
dependencies/openrazer-win32/OpenRazer64.dll
vendored
Binary file not shown.
Reference in New Issue
Block a user