diff --git a/tool/gcn64.c b/tool/gcn64.c index 50b0808..32fe799 100644 --- a/tool/gcn64.c +++ b/tool/gcn64.c @@ -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)) { + 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_serial, ctx->cur_dev->serial_number, SERIAL_MAXCHARS-1); strncpy(info->str_path, ctx->cur_dev->path, PATH_MAXCHARS-1); diff --git a/tool/gcn64.h b/tool/gcn64.h index 8bbb68c..d71e92c 100644 --- a/tool/gcn64.h +++ b/tool/gcn64.h @@ -12,6 +12,7 @@ struct gcn64_info { wchar_t str_prodname[PRODNAME_MAXCHARS]; wchar_t str_serial[SERIAL_MAXCHARS]; char str_path[PATH_MAXCHARS]; + int usb_vid, usb_pid; int major, minor; int access; // True unless direct access to read serial/prodname failed due to permissions. };