Merge pull request #3539 from Sonicadvance1/two_adapters_one_pc

Allow multiple GC adapters on one PC to be used with multiple Dolphin instances.
This commit is contained in:
Pierre Bourdon 2016-01-20 22:41:19 +01:00
commit 3a12dccac7
1 changed files with 4 additions and 0 deletions

View File

@ -190,7 +190,11 @@ void Setup()
{ {
libusb_device* device = list[d]; libusb_device* device = list[d];
if (CheckDeviceAccess(device)) if (CheckDeviceAccess(device))
{
// Only connect to a single adapter in case the user has multiple connected
AddGCAdapter(device); AddGCAdapter(device);
break;
}
} }
libusb_free_device_list(list, 1); libusb_free_device_list(list, 1);