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.
This commit is contained in:
Ryan Houdek 2016-01-20 15:20:17 -06:00
parent a14c07413f
commit 70aa012fef

View File

@ -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);