summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2013-09-30 01:17:16 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2013-09-30 01:17:50 -0700
commitb37b0a4a35e4e0204680ddfa3daa0a3fd86153f2 (patch)
treed1642a668886b2f800d7235151d80165d95ea95a
parentcc31c45d8cccfb22a694e81f795ab77a98dbf745 (diff)
Support detecting if iOS 7 is fast (yes: yes it is).
-rw-r--r--MobileCydia.mm3
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;