Call main_exit_save_config from applicationWillResignActive
This commit is contained in:
parent
c76a293a2e
commit
95c09844ab
|
@ -30,8 +30,12 @@
|
||||||
|
|
||||||
id<RetroArch_Platform> apple_platform;
|
id<RetroArch_Platform> apple_platform;
|
||||||
|
|
||||||
|
/* forward decls */
|
||||||
|
|
||||||
void apple_rarch_exited(void);
|
void apple_rarch_exited(void);
|
||||||
|
|
||||||
|
void main_exit_save_config(void);
|
||||||
|
|
||||||
void apple_rarch_exited(void)
|
void apple_rarch_exited(void)
|
||||||
{
|
{
|
||||||
[apple_platform unloadingCore];
|
[apple_platform unloadingCore];
|
||||||
|
@ -254,6 +258,7 @@ void switch_to_ios() {
|
||||||
|
|
||||||
- (void)applicationWillResignActive:(UIApplication *)application
|
- (void)applicationWillResignActive:(UIApplication *)application
|
||||||
{
|
{
|
||||||
|
main_exit_save_config();
|
||||||
[self showPauseMenu: self];
|
[self showPauseMenu: self];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,6 @@ extern "C" {
|
||||||
|
|
||||||
void main_exit(args_type() args);
|
void main_exit(args_type() args);
|
||||||
|
|
||||||
void main_exit_save_config(void);
|
|
||||||
|
|
||||||
returntype main_entry(signature());
|
returntype main_entry(signature());
|
||||||
|
|
||||||
bool main_load_content(int argc, char **argv,
|
bool main_load_content(int argc, char **argv,
|
||||||
|
|
Loading…
Reference in New Issue