]> git.saurik.com Git - winterboard.git/commitdiff
Make symlinks to / stop search to fix user override.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 4 Jun 2012 10:44:28 +0000 (10:44 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 4 Jun 2012 10:44:28 +0000 (10:44 +0000)
Library.mm
User Lock Background.theme/LockBackground.jpg
User Wallpaper.theme/Wallpaper.jpg

index bd04b82aee2db8880eec5f4fb299168cc1ad1ab7..f716b30b7e8611dfa90210fb5b75713ebc1ee78f 100644 (file)
@@ -314,8 +314,11 @@ static NSString *$getTheme$(NSArray *files, NSArray *themes = Themes_) {
     for (NSString *theme in Themes_)
         for (NSString *file in files) {
             path = [NSString stringWithFormat:@"%@/%@", theme, file];
-            if ([Manager_ fileExistsAtPath:path])
+            if ([Manager_ fileExistsAtPath:path]) {
+                if ([[Manager_ pathContentOfSymbolicLinkAtPath:path] isEqualToString:@"/"])
+                    path = nil;
                 goto set;
+            }
         }
 
     path = nil;
index d0c0b4b44cf74bb097b22ba01adb8dcebc0a2e97..35ec3b9d7586b46c0fd3450ba21e30ef666cfcd6 120000 (symlink)
@@ -1 +1 @@
-/var/mobile/Library/LockBackground.jpg
\ No newline at end of file
+/
\ No newline at end of file
index d0c0b4b44cf74bb097b22ba01adb8dcebc0a2e97..35ec3b9d7586b46c0fd3450ba21e30ef666cfcd6 120000 (symlink)
@@ -1 +1 @@
-/var/mobile/Library/LockBackground.jpg
\ No newline at end of file
+/
\ No newline at end of file