]> git.saurik.com Git - cydia.git/commitdiff
Support detecting if iOS 7 is fast (yes: yes it is).
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 30 Sep 2013 08:17:16 +0000 (01:17 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 30 Sep 2013 08:17:50 +0000 (01:17 -0700)
MobileCydia.mm

index 7f526224ea4eeb35da735955e98ea91293fd6bb1..12ec4f6804278d459de9d3d366c28821b1b2d693 100644 (file)
@@ -10856,7 +10856,8 @@ int main(int argc, char *argv[]) {
 
     $SBSSetInterceptsMenuButtonForever = reinterpret_cast<void (*)(bool)>(dlsym(RTLD_DEFAULT, "SBSSetInterceptsMenuButtonForever"));
 
 
     $SBSSetInterceptsMenuButtonForever = reinterpret_cast<void (*)(bool)>(dlsym(RTLD_DEFAULT, "SBSSetInterceptsMenuButtonForever"));
 
-    BOOL (*GSSystemHasCapability)(CFStringRef) = reinterpret_cast<BOOL (*)(CFStringRef)>(dlsym(RTLD_DEFAULT, "GSSystemHasCapability"));
+    const char *symbol(kCFCoreFoundationVersionNumber >= 800 ? "MGGetBoolAnswer" : "GSSystemHasCapability");
+    BOOL (*GSSystemHasCapability)(CFStringRef) = reinterpret_cast<BOOL (*)(CFStringRef)>(dlsym(RTLD_DEFAULT, symbol));
     bool fast = GSSystemHasCapability != NULL && GSSystemHasCapability(CFSTR("armv7"));
 
     ShowPromoted_ = fast;
     bool fast = GSSystemHasCapability != NULL && GSSystemHasCapability(CFSTR("armv7"));
 
     ShowPromoted_ = fast;