(Apple) Implement frontend_apple_shutdown

This commit is contained in:
Twinaphex 2014-07-22 05:13:48 +02:00
parent cd89a37682
commit aa078cdae8
2 changed files with 10 additions and 6 deletions

View File

@ -44,8 +44,8 @@ extern id<RetroArch_Platform> apple_platform;
// main.m
extern void apple_run_core(NSString* core, const char* file);
extern void apple_start_iteration();
extern void apple_stop_iteration();
extern void apple_start_iteration(void);
extern void apple_stop_iteration(void);
// utility.m
extern void apple_display_alert(const char *message, const char *title);

View File

@ -26,8 +26,6 @@
static CFRunLoopObserverRef iterate_observer;
extern void apple_rarch_exited(void);
static void do_iteration(void)
{
if (!(iterate_observer && g_extern.main_is_init && !g_extern.is_paused))
@ -36,7 +34,6 @@ static void do_iteration(void)
if (main_entry_iterate(0, NULL, NULL))
{
main_exit(NULL);
apple_rarch_exited();
return;
}
@ -62,6 +59,13 @@ void apple_stop_iteration(void)
iterate_observer = 0;
}
extern void apple_rarch_exited(void);
static void frontend_apple_shutdown(bool unused)
{
apple_rarch_exited();
}
static int frontend_apple_get_rating(void)
{
/* TODO/FIXME - look at unique identifier per device and
@ -76,7 +80,7 @@ const frontend_ctx_driver_t frontend_ctx_apple = {
NULL, /* process_args */
NULL, /* process_events */
NULL, /* exec */
NULL, /* shutdown */
frontend_apple_shutdown, /* shutdown */
NULL, /* get_name */
frontend_apple_get_rating, /* get_rating */
"apple",