summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/TextureCacheBase.cpp
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2015-01-26 13:54:54 +0100
committermathieui <mathieui@mathieui.net>2015-02-05 10:03:21 +0100
commit8e556603afa0d58bbde9433b3c3095c384025a57 (patch)
treef6a5fbd322d502ee635e1b323f13ad94c13dbe84 /Source/Core/VideoCommon/TextureCacheBase.cpp
parenta2b872b9da5577632bc0f13d56930fbbe3376093 (diff)
Fix issues with the GC adapter handling code
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.
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
0 files changed, 0 insertions, 0 deletions