summaryrefslogtreecommitdiff
path: root/uicache.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2009-08-18 18:00:24 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2009-08-18 18:00:24 +0000
commit2a72f832e35d56a748537c894b00a236bae8f16a (patch)
treebd051fda8c5ed41ab9d87a4bfe1c83590e3794fc /uicache.mm
parent7fb7ce13deab7a4d127f5f04e0c82069a6cf2014 (diff)
UIKit Tools is not part of Telesphoreo.
Diffstat (limited to 'uicache.mm')
-rw-r--r--uicache.mm10
1 files changed, 7 insertions, 3 deletions
diff --git a/uicache.mm b/uicache.mm
index 71f67d8..e08fe5d 100644
--- a/uicache.mm
+++ b/uicache.mm
@@ -54,9 +54,13 @@ int main() {
NSString *plist = [path stringByAppendingPathComponent:@"Info.plist"];
if (NSMutableDictionary *info = [[NSMutableDictionary alloc] initWithContentsOfFile:plist]) {
[info autorelease];
- [info setObject:path forKey:@"Path"];
- [info setObject:@"System" forKey:@"ApplicationType"];
- [system addInfoDictionary:info];
+ if ([info objectForKey:@"CFBundleIdentifier"] == nil)
+ fprintf(stderr, "%s missing CFBundleIdentifier", [app UTF8String]);
+ else {
+ [info setObject:path forKey:@"Path"];
+ [info setObject:@"System" forKey:@"ApplicationType"];
+ [system addInfoDictionary:info];
+ }
}
}
} else goto error;