From db6fa9632fd87d6873bb41bd304584fb6f2a2e83 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 12 Jan 2014 06:34:13 -0800 Subject: [PATCH] I feel really bad I didn't fix this app long ago. --- Library.mm | 2 ++ 1 file changed, 2 insertions(+) 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)) -- 2.45.2