From: Jay Freeman (saurik) Date: Mon, 4 Jun 2012 10:44:28 +0000 (+0000) Subject: Make symlinks to / stop search to fix user override. X-Git-Tag: v0.9.3906~13 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/9e0a075f5e236a05e79d7fe4a2b65b10d815a0e0 Make symlinks to / stop search to fix user override. --- diff --git a/Library.mm b/Library.mm index bd04b82..f716b30 100644 --- a/Library.mm +++ b/Library.mm @@ -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; diff --git a/User Lock Background.theme/LockBackground.jpg b/User Lock Background.theme/LockBackground.jpg index d0c0b4b..35ec3b9 120000 --- a/User Lock Background.theme/LockBackground.jpg +++ b/User Lock Background.theme/LockBackground.jpg @@ -1 +1 @@ -/var/mobile/Library/LockBackground.jpg \ No newline at end of file +/ \ No newline at end of file diff --git a/User Wallpaper.theme/Wallpaper.jpg b/User Wallpaper.theme/Wallpaper.jpg index d0c0b4b..35ec3b9 120000 --- a/User Wallpaper.theme/Wallpaper.jpg +++ b/User Wallpaper.theme/Wallpaper.jpg @@ -1 +1 @@ -/var/mobile/Library/LockBackground.jpg \ No newline at end of file +/ \ No newline at end of file