mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
Removed redundant ifdef
This commit is contained in:
@@ -642,16 +642,11 @@ static void IOS_AddJoystickDevice(GCController *controller)
|
|||||||
device->pause_button_index = -1;
|
device->pause_button_index = -1;
|
||||||
|
|
||||||
if (controller) {
|
if (controller) {
|
||||||
#ifdef SDL_JOYSTICK_MFI
|
|
||||||
if (!IOS_AddMFIJoystickDevice(device, controller)) {
|
if (!IOS_AddMFIJoystickDevice(device, controller)) {
|
||||||
SDL_free(device->name);
|
SDL_free(device->name);
|
||||||
SDL_free(device);
|
SDL_free(device);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
SDL_free(device);
|
|
||||||
return;
|
|
||||||
#endif // SDL_JOYSTICK_MFI
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (deviceList == NULL) {
|
if (deviceList == NULL) {
|
||||||
|
|||||||
Reference in New Issue
Block a user