(libusb_hid.c) Move pad_connection_init up in 'init' function

This commit is contained in:
twinaphex 2015-04-04 16:32:06 +02:00
parent 8dd798ed79
commit a6056819cf
1 changed files with 2 additions and 1 deletions

View File

@ -392,6 +392,8 @@ static void *libusb_hid_init(void)
if (!libusb_has_capability(LIBUSB_CAP_HAS_HOTPLUG))
goto error;
hid->slots = (joypad_connection_t*)pad_connection_init(MAX_USERS);
count = libusb_get_device_list(NULL, &devices);
for (i = 0; i < count; i++)
@ -422,7 +424,6 @@ static void *libusb_hid_init(void)
goto error;
}
hid->slots = (joypad_connection_t*)pad_connection_init(MAX_USERS);
return hid;