From 03f3818f73778db5945de1739a4a2d78b507fee4 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 30 Mar 2011 07:30:47 +0000 Subject: [PATCH] Support iOS 3.2. --- LockScreen.mm | 5 +++-- control | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/LockScreen.mm b/LockScreen.mm index fc17eba..0c345a1 100644 --- a/LockScreen.mm +++ b/LockScreen.mm @@ -112,7 +112,7 @@ while (false) static Class $CydgetController(objc_getClass("CydgetController")); -static bool iOS4; +static bool iOS32, iOS4; @interface NSString (UIKit) - (NSString *) stringByAddingPercentEscapes; @@ -534,7 +534,7 @@ MSHook(State, _ZN7WebCore13HTMLTokenizer15scriptExecutionERKNS_6StringENS0_5Stat // iOS 3.x MSHook(void, _ZN3JSC6Parser5parseEPNS_12JSGlobalDataEPiPNS_7UStringE, JSC::SourceCode **_this, JSC::JSGlobalData *global, int *line, JSC::UString *message) { if (cycript_) { - JSC::SourceCode *source(*_this); + JSC::SourceCode *source(_this[iOS32 ? 6 : 0]); const uint16_t *data(source->data()); size_t size(source->length()); @@ -850,6 +850,7 @@ static void $UIWebViewWebViewDelegate$webView$didClearWindowObject$forFrame$(UIW CYScrollViewDecelerationRateNormal = 0.998; iOS4 = kCFCoreFoundationVersionNumber >= 550.32; + iOS32 = !iOS4 && kCFCoreFoundationVersionNumber >= 478.61; int maxproc; size_t size(sizeof(maxproc)); diff --git a/control b/control index c76185a..ac2272e 100644 --- a/control +++ b/control @@ -6,7 +6,7 @@ Architecture: iphoneos-arm Version: 0.9.3365-1 Description: framework for managing lock screen plugins Name: Cydget -Depends: mobilesubstrate (>= 0.9.3366-1), cy+os.ios (>= 2.2), cy+os.ios (<< 5.0), preferenceloader, apr-lib, pcre, cycript (>= 0.9.292-1), cy+model.iphone | cy+model.ipod +Depends: mobilesubstrate (>= 0.9.3366-1), cy+os.ios (>= 2.2), cy+os.ios (<< 5.0), preferenceloader, apr-lib, pcre, cycript (>= 0.9.292-1) Replaces: cydialer (<< 0.9.17) Author: Jay Freeman (saurik) Depiction: http://cydia.saurik.com/info/cydget/ -- 2.45.2