GCAdapter: Report libusb open errors to the user

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.
This commit is contained in:
Vincent Duvert
2018-07-17 22:31:18 +02:00
parent 0165e5e703
commit b08e2ec959
4 changed files with 60 additions and 24 deletions

View File

@ -26,8 +26,7 @@ void StartScanThread();
void StopScanThread();
GCPadStatus Input(int chan);
void Output(int chan, u8 rumble_command);
bool IsDetected();
bool IsDriverDetected();
bool IsDetected(const char** error_message);
bool DeviceConnected(int chan);
void ResetDeviceType(int chan);
bool UseAdapter();