From: Jay Freeman (saurik) Date: Sat, 22 Oct 2011 11:41:03 +0000 (+0000) Subject: Drop ~iphone from ~iphone.app. X-Git-Tag: v0.9.3904~29 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/fa2bffc41753cdb90ad2428d6358bda8d46f2530?ds=inline Drop ~iphone from ~iphone.app. --- diff --git a/Library.mm b/Library.mm index 91bda3d..17452bc 100644 --- a/Library.mm +++ b/Library.mm @@ -323,8 +323,12 @@ static NSString *$pathForFile$inBundle$(NSString *file, NSBundle *bundle, bool u if (identifier != nil) [names addObject:[NSString stringWithFormat:@"Bundles/%@/%@", identifier, file]]; - if (NSString *folder = [[bundle bundlePath] lastPathComponent]) + if (NSString *folder = [[bundle bundlePath] lastPathComponent]) { [names addObject:[NSString stringWithFormat:@"Folders/%@/%@", folder, file]]; + NSString *base([folder stringByDeletingPathExtension]); + if ([base hasSuffix:@"~iphone"]) + [names addObject:[NSString stringWithFormat:@"Folders/%@.%@/%@", [base substringWithRange:NSMakeRange(0, [base length] - 7)], [folder pathExtension], file]]; + } if (ui) [names addObject:[NSString stringWithFormat:@"UIImages/%@", file]];