diff --git a/usbstrings.c b/usbstrings.c index 73c07cf..a42ffc5 100644 --- a/usbstrings.c +++ b/usbstrings.c @@ -19,7 +19,11 @@ const wchar_t *g_usb_strings[] = { [0] = L"raphnet technologies", // 1 : Vendor - [1] = L"GC/N64 to USB v3.2", // 2: Product + [1] = L"GC/N64 to USB v"VERSIONSTR_SHORT, // 2: Product [2] = L"123456", // 3 : Serial }; +void usbstrings_changeProductString(const wchar_t *str) +{ + g_usb_strings[1] = str; +} diff --git a/usbstrings.h b/usbstrings.h index 7d767ba..693b355 100644 --- a/usbstrings.h +++ b/usbstrings.h @@ -8,4 +8,6 @@ extern const wchar_t *g_usb_strings[]; /* Array indexes (i.e. zero-based0 */ #define USB_STRING_SERIAL_IDX 2 +void usbstrings_changeProductString(const wchar_t *str); + #endif