From 95c09844abb486285cbf58b71f866ef0e693caa5 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Wed, 31 Dec 2014 13:27:53 +0100 Subject: [PATCH] Call main_exit_save_config from applicationWillResignActive --- apple/iOS/platform.m | 5 +++++ frontend/frontend.h | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/apple/iOS/platform.m b/apple/iOS/platform.m index d6dd2fef6e..0a57c9f3e9 100644 --- a/apple/iOS/platform.m +++ b/apple/iOS/platform.m @@ -30,8 +30,12 @@ id apple_platform; +/* forward decls */ + void apple_rarch_exited(void); +void main_exit_save_config(void); + void apple_rarch_exited(void) { [apple_platform unloadingCore]; @@ -254,6 +258,7 @@ void switch_to_ios() { - (void)applicationWillResignActive:(UIApplication *)application { + main_exit_save_config(); [self showPauseMenu: self]; } diff --git a/frontend/frontend.h b/frontend/frontend.h index c5e2db44d9..5329d0c25d 100644 --- a/frontend/frontend.h +++ b/frontend/frontend.h @@ -28,8 +28,6 @@ extern "C" { void main_exit(args_type() args); -void main_exit_save_config(void); - returntype main_entry(signature()); bool main_load_content(int argc, char **argv,