UIDevice *device([UIDevice currentDevice]);
IsWild_ = [device respondsToSelector:@selector(isWildcat)] && [device isWildcat];
+ if ([Info_ objectForKey:@"UndockedIconLabels"] == nil)
+ [Info_ setObject:[NSNumber numberWithBool:(
+ !(Papered_ || GSSystemHasCapability(CFSTR("homescreen-wallpaper"))) ||
+ [Info_ objectForKey:@"DockedIconLabelStyle"] != nil ||
+ [Info_ objectForKey:@"UndockedIconLabelStyle"] != nil
+ )] forKey:@"UndockedIconLabels"];
+
+ if (Debug_)
+ NSLog(@"WB:Debug:Info = %@", [Info_ description]);
+
if (Papered_) {
UIImageView *&_wallpaperView(MSHookIvar<UIImageView *>(self, "_wallpaperView"));
if (&_wallpaperView != NULL) {
MSHook(UIImage *, _UIImageWithName, NSString *name) {
if (Debug_)
NSLog(@"WB:Debug: _UIImageWithName(\"%@\")", name);
+ if (name == nil)
+ return nil;
int identifier;
bool packed;
Docked_ = $getTheme$([NSArray arrayWithObjects:@"Dock.png", nil]);
- if ([Info_ objectForKey:@"UndockedIconLabels"] == nil)
- [Info_ setObject:[NSNumber numberWithBool:(
- !Papered_ ||
- [Info_ objectForKey:@"DockedIconLabelStyle"] != nil ||
- [Info_ objectForKey:@"UndockedIconLabelStyle"] != nil
- )] forKey:@"UndockedIconLabels"];
-
- if (Debug_)
- NSLog(@"WB:Debug:Info = %@", [Info_ description]);
-
[pool release];
}