]> git.saurik.com Git - winterboard.git/commitdiff
OMG, I am so sleep deprived, this is nuts.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 9 May 2010 01:16:29 +0000 (01:16 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 9 May 2010 01:16:29 +0000 (01:16 +0000)
Library.mm

index 74561d51e64d297b2fb80eeedc5c03dd5d296973..b19eecd8a2cb3a33c3cadfc19f646a8837eebcad 100644 (file)
@@ -740,6 +740,9 @@ MSHook(id, SBUIController$init, SBUIController *self, SEL sel) {
     if (self == nil)
         return nil;
 
+    UIDevice *device([UIDevice currentDevice]);
+    IsWild_ = [device respondsToSelector:@selector(isWildcat)] && [device isWildcat];
+
     if (Papered_) {
         UIWindow *&_wallpaperView(MSHookIvar<UIWindow *>(self, "_wallpaperView"));
         if (&_wallpaperView != NULL) {
@@ -1697,9 +1700,6 @@ extern "C" void WBInitialize() {
     Wallpapers_ = [[NSArray arrayWithObjects:@"Wallpaper.mp4", @"Wallpaper.png", @"Wallpaper.jpg", @"Wallpaper.html", nil] retain];
     Papered_ = $getTheme$(Wallpapers_) != nil;
 
-    UIDevice *device([UIDevice currentDevice]);
-    IsWild_ = [device respondsToSelector:@selector(isWildcat)] && [device isWildcat];
-
     if ([Info_ objectForKey:@"UndockedIconLabels"] == nil)
         [Info_ setObject:[NSNumber numberWithBool:(
             !Papered_ ||