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,