summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-25 02:41:50 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-25 02:41:50 -0700
commitc73d524b3a41e1e27d5d02d96bc89d1414d4c768 (patch)
treedacf366661d7b8356a5c1db2fa66177c7fba28ba /MobileCydia.mm
parentcc3b7d31f2308a3aa5e93ab77fb5f842b0920860 (diff)
Slow down PulseInterval_ on old devices.
Diffstat (limited to 'MobileCydia.mm')
-rw-r--r--MobileCydia.mm7
1 files changed, 5 insertions, 2 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 1d2c1d6..96f2651 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -673,7 +673,7 @@ class CYColor {
/* }}} */
/* Random Global Variables {{{ */
-static const int PulseInterval_ = 50000;
+static int PulseInterval_ = 500000;
static const NSString *UI_;
@@ -10777,7 +10777,10 @@ int main(int argc, char *argv[]) {
/* }}} */
BOOL (*GSSystemHasCapability)(CFStringRef) = reinterpret_cast<BOOL (*)(CFStringRef)>(dlsym(RTLD_DEFAULT, "GSSystemHasCapability"));
- ShowPromoted_ = GSSystemHasCapability != NULL && GSSystemHasCapability(CFSTR("armv7"));
+ bool fast = GSSystemHasCapability != NULL && GSSystemHasCapability(CFSTR("armv7"));
+
+ ShowPromoted_ = fast;
+ PulseInterval_ = fast ? 50000 : 500000;
Colon_ = UCLocalize("COLON_DELIMITED");
Elision_ = UCLocalize("ELISION");