mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-16 14:42:52 +00:00
Workaround GC adapter detection breaking when reset fails
This commit is contained in:
parent
559a16da49
commit
c893ccca58
@ -218,10 +218,9 @@ static void ReadThreadFunc()
|
|||||||
error = libusb_reset_device(s_handle);
|
error = libusb_reset_device(s_handle);
|
||||||
ERROR_LOG_FMT(CONTROLLERINTERFACE, "Read: libusb_reset_device: {}",
|
ERROR_LOG_FMT(CONTROLLERINTERFACE, "Read: libusb_reset_device: {}",
|
||||||
LibusbUtils::ErrorWrap(error));
|
LibusbUtils::ErrorWrap(error));
|
||||||
if (error != 0)
|
|
||||||
{
|
// If error is nonzero, try fixing it next loop iteration. We can't easily return
|
||||||
break;
|
// and cleanup program state without getting another thread to call Reset().
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ProcessInputPayload(input_buffer.data(), payload_size);
|
ProcessInputPayload(input_buffer.data(), payload_size);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user