Dynamic device string

This commit is contained in:
Raphael Assenat 2016-08-22 23:18:37 -04:00
parent 7d8e8af290
commit 0c66478dc5
2 changed files with 7 additions and 1 deletions

View File

@ -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;
}

View File

@ -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