early-access version 2227

This commit is contained in:
pineappleEA
2021-11-21 02:53:04 +01:00
parent 8a26d6cb85
commit 00b81fba84
18 changed files with 129 additions and 310 deletions

View File

@@ -272,13 +272,6 @@ bool GCAdapter::CheckDeviceAccess() {
}
}
// This fixes payload problems from offbrand GCAdapters
const s32 control_transfer_error =
libusb_control_transfer(usb_adapter_handle->get(), 0x21, 11, 0x0001, 0, nullptr, 0, 1000);
if (control_transfer_error < 0) {
LOG_ERROR(Input, "libusb_control_transfer failed with error= {}", control_transfer_error);
}
if (kernel_driver_error && kernel_driver_error != LIBUSB_ERROR_NOT_SUPPORTED) {
usb_adapter_handle = nullptr;
return false;
@@ -291,6 +284,13 @@ bool GCAdapter::CheckDeviceAccess() {
return false;
}
// This fixes payload problems from offbrand GCAdapters
const s32 control_transfer_error =
libusb_control_transfer(usb_adapter_handle->get(), 0x21, 11, 0x0001, 0, nullptr, 0, 1000);
if (control_transfer_error < 0) {
LOG_ERROR(Input, "libusb_control_transfer failed with error= {}", control_transfer_error);
}
return true;
}