1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

[launcher] show button to copy existing data on iOS >= 13

This commit is contained in:
Andrey Filipenkov
2024-06-09 18:11:14 +03:00
parent e019997bee
commit 9e5b51c86f
4 changed files with 15 additions and 2 deletions

View File

@@ -46,4 +46,9 @@ const char *bundlePath() { return NSBundle.mainBundle.bundlePath.fileSystemRepre
const char *frameworksPath() { return NSBundle.mainBundle.privateFrameworksPath.fileSystemRepresentation; }
const char *bundleIdentifier() { return NSBundle.mainBundle.bundleIdentifier.UTF8String; }
bool isOsVersionAtLeast(unsigned int osMajorVersion)
{
return NSProcessInfo.processInfo.operatingSystemVersion.majorVersion >= osMajorVersion;
}
}