[Scummvm-git-logs] scummvm master -> d2554266b3f6c19e2b776ee63a43cb99f77bf6e7

criezy noreply at scummvm.org
Wed May 3 00:55:22 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:
d2554266b3 Revert "IOS7: Implement new delegate methods replacing deprecated ones"


Commit: d2554266b3f6c19e2b776ee63a43cb99f77bf6e7
    https://github.com/scummvm/scummvm/commit/d2554266b3f6c19e2b776ee63a43cb99f77bf6e7
Author: Thierry Crozat (criezy at scummvm.org)
Date: 2023-05-03T01:54:22+01:00

Commit Message:
Revert "IOS7: Implement new delegate methods replacing deprecated ones"

This reverts commit 46d6a76b8ea36998665edf01a1e6fc989f255514.
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.

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 af682585205..517e509e96c 100644
--- a/backends/platform/ios7/ios7_app_delegate.mm
+++ b/backends/platform/ios7/ios7_app_delegate.mm
@@ -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;
 }
 




More information about the Scummvm-git-logs mailing list