mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 06:40:18 +00:00
(btpad.c) Small change
This commit is contained in:
parent
907b83065b
commit
f2f529fb34
@ -117,6 +117,9 @@ static void btpad_close_all_connections(void)
|
|||||||
int i;
|
int i;
|
||||||
for (i = 0; i < MAX_PLAYERS; i ++)
|
for (i = 0; i < MAX_PLAYERS; i ++)
|
||||||
btpad_close_connection(&g_connections[i]);
|
btpad_close_connection(&g_connections[i]);
|
||||||
|
/* TODO/FIXME - create platform-agnostic solution for this
|
||||||
|
* and figure out why/if this is needed. */
|
||||||
|
CFRunLoopStop(CFRunLoopGetCurrent());
|
||||||
}
|
}
|
||||||
|
|
||||||
void btpad_packet_handler(uint8_t packet_type,
|
void btpad_packet_handler(uint8_t packet_type,
|
||||||
@ -166,7 +169,6 @@ void btpad_packet_handler(uint8_t packet_type,
|
|||||||
|
|
||||||
case HCI_STATE_HALTING:
|
case HCI_STATE_HALTING:
|
||||||
btpad_close_all_connections();
|
btpad_close_all_connections();
|
||||||
CFRunLoopStop(CFRunLoopGetCurrent());
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user