SWITCH: fix crash on exit (hidSetNpadJoyAssignmentModeDual on invalid controller in quit)

This commit is contained in:
cpasjuste 2018-03-22 14:49:33 +01:00 committed by Dave Murphy
parent 1a52258796
commit 53e19d42b9
1 changed files with 0 additions and 3 deletions

View File

@ -201,9 +201,6 @@ SDL_SYS_JoystickClose(SDL_Joystick *joystick)
void void
SDL_SYS_JoystickQuit(void) SDL_SYS_JoystickQuit(void)
{ {
for (int i = 0; i < JOYSTICK_COUNT; i++) {
hidSetNpadJoyAssignmentModeDual(pad[i].id);
}
} }
SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID(int device_index) SDL_JoystickGUID SDL_SYS_JoystickGetDeviceGUID(int device_index)