From 70aa012fefc080d3eff39673cb29725dfd4e0e74 Mon Sep 17 00:00:00 2001 From: Ryan Houdek Date: Wed, 20 Jan 2016 15:20:17 -0600 Subject: [PATCH] Allow multiple GC adapters on one PC to be used with multiple Dolphin instances. Previously we would iterate through every GC adapter plugged in to the PC and steal ownership of it. This causes issues all over the place in the implementation if this happens. Break on the first adapter we can get access to. --- Source/Core/InputCommon/GCAdapter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/Core/InputCommon/GCAdapter.cpp b/Source/Core/InputCommon/GCAdapter.cpp index b5dc395b49..f0e938d5ff 100644 --- a/Source/Core/InputCommon/GCAdapter.cpp +++ b/Source/Core/InputCommon/GCAdapter.cpp @@ -190,7 +190,11 @@ void Setup() { libusb_device* device = list[d]; if (CheckDeviceAccess(device)) + { + // Only connect to a single adapter in case the user has multiple connected AddGCAdapter(device); + break; + } } libusb_free_device_list(list, 1);