]> git.saurik.com Git - winterboard.git/commitdiff
Added the ability to force icon rendering.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 5 Aug 2008 02:27:23 +0000 (02:27 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 5 Aug 2008 02:27:23 +0000 (02:27 +0000)
Library.mm

index a6dde911d65c4bc06f04358d7bc95f28008ec7d6..0052ac2912b5b071eaabf2ba67a6e534ffa46ce6 100644 (file)
@@ -214,8 +214,9 @@ NSString *$pathForIcon$(SBApplication<WinterBoard> *self) {
 }
 
 static UIImage *SBApplicationIcon$icon(SBApplicationIcon<WinterBoard> *self, SEL sel) {
-    if (NSString *path = $pathForIcon$([self application]))
-        return [UIImage imageWithContentsOfFile:path];
+    if (Info_ == nil || ![Info_ boolForKey:@"RenderIcons"])
+        if (NSString *path = $pathForIcon$([self application]))
+            return [UIImage imageWithContentsOfFile:path];
     return [self wb_icon];
 }