return nil;
}
-static NSString *$pathForIcon$(SBApplication *self) {
+static NSString *$pathForIcon$(SBApplication *self, NSString *suffix = @"") {
NSString *identifier = [self bundleIdentifier];
NSString *path = [self path];
NSString *folder = [path lastPathComponent];
#define testForIcon(Name) \
if (NSString *name = Name) \
- [names addObject:[NSString stringWithFormat:@"Icons/%@.png", name]];
+ [names addObject:[NSString stringWithFormat:@"Icons%@/%@.png", suffix, name]];
if (![didentifier isEqualToString:identifier])
testForIcon(didentifier);
MSHook(UIImage *, SBApplicationIcon$generateIconImage$, SBApplicationIcon *self, SEL sel, int type) {
if (type == 2)
- if (![Info_ wb$boolForKey:@"ComposeStoreIcons"])
- if (NSString *path = $pathForIcon$([self application]))
+ if (![Info_ wb$boolForKey:@"ComposeStoreIcons"]) {
+ if (NSString *path72 = $pathForIcon$([self application], @"-72"))
+ return [UIImage imageWithContentsOfFile:path];
+ else if (NSString *path = $pathForIcon$([self application]))
if (UIImage *image = [UIImage imageWithContentsOfFile:path])
return [image _imageScaledToProportion:1.2 interpolationQuality:5];
+ }
return _SBApplicationIcon$generateIconImage$(self, sel, type);
}
Section: System
Maintainer: Jay Freeman (saurik) <saurik@saurik.com>
Architecture: iphoneos-arm
-Version: 0.9.3186-1
+Version: 0.9.3187-1
Description: more powerful, open-source SummerBoard
Name: WinterBoard
Depends: mobilesubstrate (>= 0.9.2958-1), killall, preferenceloader, libhide (>= 2.0.4), findutils, net.howett.pincrush (>= 0.0.1-23) | pincrush