(Apple) Implement frontend_apple_shutdown
This commit is contained in:
parent
cd89a37682
commit
aa078cdae8
|
@ -44,8 +44,8 @@ extern id<RetroArch_Platform> apple_platform;
|
||||||
|
|
||||||
// main.m
|
// main.m
|
||||||
extern void apple_run_core(NSString* core, const char* file);
|
extern void apple_run_core(NSString* core, const char* file);
|
||||||
extern void apple_start_iteration();
|
extern void apple_start_iteration(void);
|
||||||
extern void apple_stop_iteration();
|
extern void apple_stop_iteration(void);
|
||||||
|
|
||||||
// utility.m
|
// utility.m
|
||||||
extern void apple_display_alert(const char *message, const char *title);
|
extern void apple_display_alert(const char *message, const char *title);
|
||||||
|
|
|
@ -26,8 +26,6 @@
|
||||||
|
|
||||||
static CFRunLoopObserverRef iterate_observer;
|
static CFRunLoopObserverRef iterate_observer;
|
||||||
|
|
||||||
extern void apple_rarch_exited(void);
|
|
||||||
|
|
||||||
static void do_iteration(void)
|
static void do_iteration(void)
|
||||||
{
|
{
|
||||||
if (!(iterate_observer && g_extern.main_is_init && !g_extern.is_paused))
|
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))
|
if (main_entry_iterate(0, NULL, NULL))
|
||||||
{
|
{
|
||||||
main_exit(NULL);
|
main_exit(NULL);
|
||||||
apple_rarch_exited();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,6 +59,13 @@ void apple_stop_iteration(void)
|
||||||
iterate_observer = 0;
|
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)
|
static int frontend_apple_get_rating(void)
|
||||||
{
|
{
|
||||||
/* TODO/FIXME - look at unique identifier per device and
|
/* 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_args */
|
||||||
NULL, /* process_events */
|
NULL, /* process_events */
|
||||||
NULL, /* exec */
|
NULL, /* exec */
|
||||||
NULL, /* shutdown */
|
frontend_apple_shutdown, /* shutdown */
|
||||||
NULL, /* get_name */
|
NULL, /* get_name */
|
||||||
frontend_apple_get_rating, /* get_rating */
|
frontend_apple_get_rating, /* get_rating */
|
||||||
"apple",
|
"apple",
|
||||||
|
|
Loading…
Reference in New Issue