From: Jay Freeman (saurik) Date: Sun, 12 Jan 2014 14:34:13 +0000 (-0800) Subject: I feel really bad I didn't fix this app long ago. X-Git-Tag: v0.9.3912~1 X-Git-Url: https://git.saurik.com/winterboard.git/commitdiff_plain/db6fa9632fd87d6873bb41bd304584fb6f2a2e83 I feel really bad I didn't fix this app long ago. --- diff --git a/Library.mm b/Library.mm index fda60e5..f6cc678 100644 --- a/Library.mm +++ b/Library.mm @@ -678,6 +678,8 @@ MSHook(UIImage *, _UIApplicationImageWithName, NSString *name) { // %hook -[NSBundle pathForResource:ofType:] {{{ MSInstanceMessageHook2(NSString *, NSBundle, pathForResource,ofType, NSString *, resource, NSString *, type) { NSString *file = type == nil ? resource : [NSString stringWithFormat:@"%@.%@", resource, type]; + if ([file isEqualToString:@"Info.plist"]) + return MSOldCall(resource, type); if (Debug_) NSLog(@"WB:Debug: [NSBundle(%@) pathForResource:\"%@\"]", [self bundleIdentifier], file); if (NSString *path = $pathForFile$inBundle$(file, self, false, false))