[Scummvm-git-logs] scummvm master -> 0b92f048dc5f70648ed1874fcc42442f279e30d4
criezy
noreply at scummvm.org
Wed May 3 20:35:24 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
0b92f048dc IOS: Add back new delegate methods but keep old ones
Commit: 0b92f048dc5f70648ed1874fcc42442f279e30d4
https://github.com/scummvm/scummvm/commit/0b92f048dc5f70648ed1874fcc42442f279e30d4
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2023-05-03T21:35:17+01:00
Commit Message:
IOS: Add back new delegate methods but keep old ones
On iOS 12 and below, the one delegate methods are called. On iOS13.2
and above if both sets are implemented only the new delegate methods
are called, which prevent getting the deprecation warning.
Changed paths:
backends/platform/ios7/ios7_app_delegate.mm
diff --git a/backends/platform/ios7/ios7_app_delegate.mm b/backends/platform/ios7/ios7_app_delegate.mm
index 517e509e96c..45f9207cb2c 100644
--- a/backends/platform/ios7/ios7_app_delegate.mm
+++ b/backends/platform/ios7/ios7_app_delegate.mm
@@ -118,6 +118,16 @@
return YES;
}
+#ifdef __IPHONE_13_2
+- (BOOL)application:(UIApplication *)application shouldSaveSecureApplicationState:(NSCoder *)coder {
+ return YES;
+}
+
+- (BOOL)application:(UIApplication *)application shouldRestoreSecureApplicationState:(NSCoder *)coder {
+ return YES;
+}
+#endif
+
- (void)application:(UIApplication *)application didDecodeRestorableStateWithCoder:(NSCoder *)coder {
_restoreState = YES;
}
More information about the Scummvm-git-logs
mailing list