From: Jay Freeman (saurik) Date: Wed, 14 Mar 2012 08:32:48 +0000 (+0000) Subject: Re-fixes SBIcon{,View} IconAlpha support on 5.x. X-Git-Tag: v0.9.3904~8 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/2a606c6c8279781217a5b74be66ecbee548576d7?ds=inline Re-fixes SBIcon{,View} IconAlpha support on 5.x. --- 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);