diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-18 18:45:02 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-18 18:45:02 -0700 |
commit | d63406e1f5563795d5c1d8bba5b3360256507d39 (patch) | |
tree | a8e2c796b6eb59afc70e63849546a06ac0b1f7d6 | |
parent | 2656c992b0e1ecb4324519c2355d26ccb1ab3a83 (diff) |
Avoid using SystemVersion.plist.
-rw-r--r-- | MobileCydia.mm | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 632fb3a..ae69acf 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -691,7 +691,6 @@ static NSString *ChipID_ = nil; static NSString *BBSNum_ = nil; static _H<NSString> Token_; static NSString *UniqueID_ = nil; -static NSString *Build_ = nil; static NSString *Product_ = nil; static NSString *Safari_ = nil; @@ -4623,8 +4622,8 @@ static _H<NSMutableSet> Diversions_; if (Safari_ != nil) application = [NSString stringWithFormat:@"Safari/%@ %@", Safari_, application]; - if (Build_ != nil) - application = [NSString stringWithFormat:@"Mobile/%@ %@", Build_, application]; + if (System_ != nil) + application = [NSString stringWithFormat:@"Mobile/%@ %@", System_, application]; if (Product_ != nil) application = [NSString stringWithFormat:@"Version/%@ %@", Product_, application]; @@ -10236,8 +10235,6 @@ int main(int argc, char *argv[]) { UniqueID_ = [device uniqueIdentifier]; - if (NSDictionary *system = [NSDictionary dictionaryWithContentsOfFile:@"/System/Library/CoreServices/SystemVersion.plist"]) - Build_ = [system objectForKey:@"ProductBuildVersion"]; if (NSDictionary *info = [NSDictionary dictionaryWithContentsOfFile:@"/Applications/MobileSafari.app/Info.plist"]) { Product_ = [info objectForKey:@"SafariProductVersion"]; Safari_ = [info objectForKey:@"CFBundleVersion"]; |