mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
8e556603af
If we successfully detach the kernel driver from the interface, we should continue instead of aborting the setup. And we should not use libusb_handle_events(), as the API says it is only for backwards compatibility. Additionally, if the adapter thread is not active, dolphin will take 60 seconds to close because the libusb_handle_events() timeout is hardcoded to 60 seconds. Instead, use libusb_handle_events_timeout_completed() with a timeout of 1 second. Also, cancel the libusb transfers before the join(), to be able to close the usb device without libusb screaming in the background (and potentially crashing). And finally, split the Init() and Shutdown() functions to avoid having to init and exit libusb every time we neeed to detect the adapter. |
||
---|---|---|
.. | ||
AudioCommon | ||
Common | ||
Core | ||
DiscIO | ||
DolphinQt | ||
DolphinWX | ||
InputCommon | ||
UICommon | ||
VideoBackends | ||
VideoCommon | ||
CMakeLists.txt |