diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2013-09-30 01:17:16 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2013-09-30 01:17:50 -0700 |
commit | b37b0a4a35e4e0204680ddfa3daa0a3fd86153f2 (patch) | |
tree | d1642a668886b2f800d7235151d80165d95ea95a /MobileCydia.mm | |
parent | cc31c45d8cccfb22a694e81f795ab77a98dbf745 (diff) |
Support detecting if iOS 7 is fast (yes: yes it is).
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r-- | MobileCydia.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 7f52622..12ec4f6 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10856,7 +10856,8 @@ int main(int argc, char *argv[]) { $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; |