From: Jay Freeman (saurik) Date: Sat, 8 Oct 2011 05:53:27 +0000 (+0000) Subject: Temporary iOS 5 support. X-Git-Tag: v0.9.3900^0 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/9741cf15b650fefc2c436dd903f820a99d335d9a Temporary iOS 5 support. --- diff --git a/Library.mm b/Library.mm index ffe6f12..65a7994 100644 --- a/Library.mm +++ b/Library.mm @@ -1731,12 +1731,16 @@ extern "C" void WBInitialize() { $WebCoreFrameBridge = objc_getClass("WebCoreFrameBridge"); + bool olden(dlsym(RTLD_DEFAULT, "GSLibraryCopyGenerationInfoValueForKey") == NULL); + + if (olden) + $SBCalendarIconContentsView = objc_getClass("SBCalendarIconContentsView"); + $SBApplication = objc_getClass("SBApplication"); $SBApplicationIcon = objc_getClass("SBApplicationIcon"); $SBAwayView = objc_getClass("SBAwayView"); $SBBookmarkIcon = objc_getClass("SBBookmarkIcon"); $SBButtonBar = objc_getClass("SBButtonBar"); - $SBCalendarIconContentsView = objc_getClass("SBCalendarIconContentsView"); $SBDockIconListView = objc_getClass("SBDockIconListView"); $SBIcon = objc_getClass("SBIcon"); $SBIconBadge = objc_getClass("SBIconBadge"); @@ -1776,7 +1780,9 @@ extern "C" void WBInitialize() { WBRename(SBDockIconListView, setFrame:, setFrame$); MSHookMessage(object_getClass($SBDockIconListView), @selector(shouldShowNewDock), &$SBDockIconListView$shouldShowNewDock, &_SBDockIconListView$shouldShowNewDock); - WBRename(SBIconLabel, drawRect:, drawRect$); + if (olden) + WBRename(SBIconLabel, drawRect:, drawRect$); + WBRename(SBIconLabel, initWithSize:label:, initWithSize$label$); WBRename(SBIconLabel, setInDock:, setInDock$); diff --git a/control b/control index 875a359..e6fed4c 100644 --- a/control +++ b/control @@ -3,7 +3,7 @@ Priority: optional Section: System Maintainer: Jay Freeman (saurik) Architecture: iphoneos-arm -Version: 0.9.3225-1 +Version: 0.9.3900-1 Description: more powerful, open-source SummerBoard Name: WinterBoard Depends: mobilesubstrate (>= 0.9.3225-1), killall, preferenceloader, libhide (>= 2.0.4), findutils, net.howett.pincrush (>= 0.0.1-23) | pincrush