mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
Revert "IOS7: Implement new delegate methods replacing deprecated ones"
This reverts commit 46d6a76b8e.
The commit broke saving and restoring state when compiling with SDK 13
or above and running on iOS 12 or below. The functions to save/restore
were no longer called.
This commit is contained in:
@@ -110,19 +110,11 @@
|
||||
[_view saveApplicationState];
|
||||
}
|
||||
|
||||
#ifdef __IPHONE_13_2
|
||||
- (BOOL)application:(UIApplication *)application shouldSaveSecureApplicationState:(NSCoder *)coder {
|
||||
#else
|
||||
- (BOOL)application:(UIApplication *)application shouldSaveApplicationState:(NSCoder *)coder {
|
||||
#endif
|
||||
return YES;
|
||||
}
|
||||
|
||||
#ifdef __IPHONE_13_2
|
||||
- (BOOL)application:(UIApplication *)application shouldRestoreSecureApplicationState:(NSCoder *)coder {
|
||||
#else
|
||||
- (BOOL)application:(UIApplication *)application shouldRestoreApplicationState:(NSCoder *)coder {
|
||||
#endif
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user