From fa2bffc41753cdb90ad2428d6358bda8d46f2530 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 22 Oct 2011 11:41:03 +0000 Subject: [PATCH] Drop ~iphone from ~iphone.app. --- Library.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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]]; -- 2.50.0