From c65af98255201d55c356f80cc474d4e9926a9ab0 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Thu, 10 Jul 2014 21:47:26 +0200 Subject: [PATCH] (Apple) Reduce dependencies on apple_is_running global variable --- frontend/platform/platform_apple.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/platform/platform_apple.c b/frontend/platform/platform_apple.c index 27d0bd6af4..4455822e78 100644 --- a/frontend/platform/platform_apple.c +++ b/frontend/platform/platform_apple.c @@ -27,13 +27,11 @@ static CFRunLoopObserverRef iterate_observer; -extern bool apple_is_running; - extern void apple_rarch_exited(void); static void do_iteration(void) { - if (!(iterate_observer && apple_is_running && !g_extern.is_paused)) + if (!(iterate_observer && g_extern.main_is_init && !g_extern.is_paused)) return; if (main_entry_iterate(0, NULL, NULL)) @@ -91,7 +89,7 @@ void apple_refresh_config(void) memset(g_settings.input.overlay, 0, sizeof(g_settings.input.overlay)); memset(g_settings.video.shader_path, 0, sizeof(g_settings.video.shader_path)); - if (!apple_is_running) + if (!g_extern.main_is_init) return; uninit_drivers();