/* patcyh - you should pronounce it like patch
- * Copyright (C) 2015 Jay Freeman (saurik)
+ * Copyright (C) 2015-2016 Jay Freeman (saurik)
*/
/* GNU General Public License, Version 3 {{{ */
NSAutoreleasePool *pool([[NSAutoreleasePool alloc] init]);
- if (!PatchInstall(false, false))
+ bool modern(kCFCoreFoundationVersionNumber > 1242);
+
+ if (!PatchLaunch(modern || kCFCoreFoundationVersionNumber < 1200, false))
+ return 1;
+
+ if (!PatchInstall(modern, false))
return 1;
- system("launchctl stop com.apple.mobile.installd");
[pool release];
return 0;