From 2a606c6c8279781217a5b74be66ecbee548576d7 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 14 Mar 2012 08:32:48 +0000 Subject: [PATCH] Re-fixes SBIcon{,View} IconAlpha support on 5.x. --- Library.mm | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Library.mm b/Library.mm index 5583c53..d03ec83 100644 --- a/Library.mm +++ b/Library.mm @@ -160,15 +160,14 @@ MSClassHook(SBWidgetApplicationIcon) extern "C" void WKSetCurrentGraphicsContext(CGContextRef); -__attribute__((__constructor__)) -static void MSFixClass() { - if ($SBIcon == nil) - $SBIcon = objc_getClass("SBIconView"); +static struct MSFixClass { MSFixClass() { + $SBIcon = objc_getClass("SBIconView") ?: $SBIcon; + if ($SBIconList == nil) $SBIconList = objc_getClass("SBIconListView"); if ($CKTranscriptController == nil) $CKTranscriptController = objc_getClass("mSMSMessageTranscriptController"); -} +} } MSFixClass; static bool IsWild_; static bool Four_($SBDockIconListView != nil); -- 2.45.2