mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2025-01-30 23:00:11 -05:00
Add USB VID/PID to structure
This commit is contained in:
parent
dca3477c51
commit
9d2981cdb0
@ -106,6 +106,8 @@ struct gcn64_info *gcn64_listDevices(struct gcn64_info *info, struct gcn64_list_
|
|||||||
}
|
}
|
||||||
if (isProductIdHandled(ctx->cur_dev->product_id, ctx->cur_dev->interface_number))
|
if (isProductIdHandled(ctx->cur_dev->product_id, ctx->cur_dev->interface_number))
|
||||||
{
|
{
|
||||||
|
info->usb_vid = ctx->cur_dev->vendor_id;
|
||||||
|
info->usb_pid = ctx->cur_dev->product_id;
|
||||||
wcsncpy(info->str_prodname, ctx->cur_dev->product_string, PRODNAME_MAXCHARS-1);
|
wcsncpy(info->str_prodname, ctx->cur_dev->product_string, PRODNAME_MAXCHARS-1);
|
||||||
wcsncpy(info->str_serial, ctx->cur_dev->serial_number, SERIAL_MAXCHARS-1);
|
wcsncpy(info->str_serial, ctx->cur_dev->serial_number, SERIAL_MAXCHARS-1);
|
||||||
strncpy(info->str_path, ctx->cur_dev->path, PATH_MAXCHARS-1);
|
strncpy(info->str_path, ctx->cur_dev->path, PATH_MAXCHARS-1);
|
||||||
|
@ -12,6 +12,7 @@ struct gcn64_info {
|
|||||||
wchar_t str_prodname[PRODNAME_MAXCHARS];
|
wchar_t str_prodname[PRODNAME_MAXCHARS];
|
||||||
wchar_t str_serial[SERIAL_MAXCHARS];
|
wchar_t str_serial[SERIAL_MAXCHARS];
|
||||||
char str_path[PATH_MAXCHARS];
|
char str_path[PATH_MAXCHARS];
|
||||||
|
int usb_vid, usb_pid;
|
||||||
int major, minor;
|
int major, minor;
|
||||||
int access; // True unless direct access to read serial/prodname failed due to permissions.
|
int access; // True unless direct access to read serial/prodname failed due to permissions.
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user