diff options
| author | 2020-07-10 11:07:43 -0400 | |
|---|---|---|
| committer | 2020-07-10 11:07:43 -0400 | |
| commit | 042c6602a057c990bf2eeec31b88c48e987050c7 (patch) | |
| tree | 8aac3b1c9853fcd8aa23ac7fc13da4f1fc2adac1 | |
| parent | Rebase to master, fix merge conflicts (diff) | |
| download | yuzu-042c6602a057c990bf2eeec31b88c48e987050c7.tar.gz yuzu-042c6602a057c990bf2eeec31b88c48e987050c7.tar.xz yuzu-042c6602a057c990bf2eeec31b88c48e987050c7.zip | |
Break out of scan loop if can't find adapter on first run
Diffstat (limited to '')
| -rw-r--r-- | src/input_common/gcadapter/gc_adapter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input_common/gcadapter/gc_adapter.cpp b/src/input_common/gcadapter/gc_adapter.cpp index 38cf02f7e..05607e033 100644 --- a/src/input_common/gcadapter/gc_adapter.cpp +++ b/src/input_common/gcadapter/gc_adapter.cpp | |||
| @@ -243,6 +243,9 @@ void Adapter::Setup() { | |||
| 243 | } | 243 | } |
| 244 | libusb_free_device_list(devices, 1); | 244 | libusb_free_device_list(devices, 1); |
| 245 | } | 245 | } |
| 246 | // Break out of the ScanThreadFunc() loop that is constantly looking for the device | ||
| 247 | // Assumes user has GC adapter plugged in before launch to use the adapter | ||
| 248 | detect_thread_running = false; | ||
| 246 | } | 249 | } |
| 247 | 250 | ||
| 248 | bool Adapter::CheckDeviceAccess(libusb_device* device) { | 251 | bool Adapter::CheckDeviceAccess(libusb_device* device) { |