]> git.saurik.com Git - winterboard.git/commitdiff
I feel really bad I didn't fix this app long ago.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 12 Jan 2014 14:34:13 +0000 (06:34 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 12 Jan 2014 14:38:19 +0000 (06:38 -0800)
Library.mm

index fda60e5024cff1a3e8061004dfa98ad06a05939c..f6cc67840999f2b6880594e5d5a2c60443226f47 100644 (file)
@@ -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))