From 0d291e809ae268e97a2c37fa55e9688a119b4063 Mon Sep 17 00:00:00 2001 From: meancoot Date: Thu, 15 Aug 2013 09:50:22 -0400 Subject: [PATCH] (iOS) Fix major hanging bug --- apple/RetroArch/main.m | 3 +-- apple/iOS/platform.m | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apple/RetroArch/main.m b/apple/RetroArch/main.m index cb425a37b3..4ba48c1933 100644 --- a/apple/RetroArch/main.m +++ b/apple/RetroArch/main.m @@ -24,7 +24,6 @@ #include "file.h" //#define HAVE_DEBUG_FILELOG -static bool use_tv_mode; id apple_platform; @@ -175,6 +174,6 @@ void apple_rarch_exited(void* result) [apple_platform unloadingCore:used_core]; } - if (use_tv_mode) + if (apple_use_tv_mode) apple_run_core(nil, 0); } diff --git a/apple/iOS/platform.m b/apple/iOS/platform.m index 1642e00189..c70e167fe0 100644 --- a/apple/iOS/platform.m +++ b/apple/iOS/platform.m @@ -127,12 +127,12 @@ static void handle_touch_event(NSArray* touches) - (void)applicationDidBecomeActive:(UIApplication *)application { - apple_enter_stasis(); + apple_exit_stasis(); } - (void)applicationWillResignActive:(UIApplication *)application { - apple_exit_stasis(); + apple_enter_stasis(); } // UINavigationControllerDelegate