|
|
|
@ -97,5 +97,20 @@ char* driver_get_name(void* handle) |
|
|
|
|
|
|
|
|
|
char* driver_get_image(void* handle) |
|
|
|
|
{ |
|
|
|
|
return "drivers/assets/gwolves-htx.png"; |
|
|
|
|
libusb_device* dev = handle; |
|
|
|
|
|
|
|
|
|
struct libusb_device_descriptor desc; |
|
|
|
|
libusb_get_device_descriptor(dev, &desc); |
|
|
|
|
|
|
|
|
|
switch(desc.idProduct) |
|
|
|
|
{ |
|
|
|
|
case HTX_4K_PRODUCT_ID_WIRED: |
|
|
|
|
case HTX_4K_PRODUCT_ID_WIRELESS: |
|
|
|
|
return HTX_IMAGE; |
|
|
|
|
case HTS_PLUS_4K_PRODUCT_ID_WIRED: |
|
|
|
|
case HTS_PLUS_4K_PRODUCT_ID_WIRELESS: |
|
|
|
|
return HTS_PLUS_IMAGE; |
|
|
|
|
default: |
|
|
|
|
return ""; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|