From 9741cf15b650fefc2c436dd903f820a99d335d9a Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 8 Oct 2011 05:53:27 +0000 Subject: [PATCH] Temporary iOS 5 support. --- Library.mm | 10 ++++++++-- control | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) 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 -- 2.45.2