New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GC USB Adapter configuration improvements #7291
Conversation
} | ||
|
||
if (error_message) | ||
*error_message = libusb_strerror((enum libusb_error)s_status); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static_cast<libusb_error>(s_status)
6a807f3
to
09c9cbf
Compare
Updated PR; I fixed the issues (except for the use of named constants in |
09c9cbf
to
955f860
Compare
955f860
to
18828b4
Compare
Updated PR:
|
18828b4
to
8d804d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just a few minor comments.
Your commit titles should be modified to use the infinitive form, e.g. "GCAdapter: Better error reporting" -> "GCAdapter: Improve error reporting" or something like that.
8d804d6
to
d40df4f
Compare
It looks like you forgot the libusb error enum change. |
d40df4f
to
f4b598d
Compare
Could you rebase this again please? |
The handle was previously kept open, which was causing future adapter plug/unplug events to be ignored.
If opening the adapter fails, report the libusb error message in the GUI instead of “No Adapter Detected”. The error condition is removed when the adapter is unplugged.
Update the GC adapter config GUI if the adapter is plugged or unplugged.
Detect when the setup function found no adapter, or found one but could not connect to it, and report the new status in that case.
Fix the Android version of GCAdapter.cpp so it matches the new definitions in GCAdapter.h.
f4b598d
to
2c3c8bb
Compare
Done. I’ve also removed the extraneous |
Some improvements to the GameCube USB adapter configuration process:
Caveats:
libusb_setlocale
with a locale string. I did not implement this because I wasn’t sure where to put the call and how to get the current locale in a cross-platform manner.