diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-10 21:01:11 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2011-03-10 21:01:11 -0800 |
commit | de595d9120dcfcb8e323faf5168bc11c971b1b45 (patch) | |
tree | d7b129eb21b1b5e719c93c62aabc9290dc96029e | |
parent | 9a4a4754594b4db37bc2d6776a9fdecc2462f289 (diff) |
Separate UI_ construction into phases.
-rw-r--r-- | MobileCydia.mm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm index 7709d76..4d3c5c6 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -10036,7 +10036,10 @@ int main(int argc, char *argv[]) { CachedURLs_ = [NSMutableSet setWithCapacity:32]; } - UI_ = CydiaURL([NSString stringWithFormat:@"ui/ios~%@", Idiom_]); + NSString *ui(@"ui/ios"); + if (Idiom_ != nil) + ui = [ui stringByAppendingString:[NSString stringWithFormat:@"~%@", Idiom_]]; + UI_ = CydiaURL(ui); PackageName = reinterpret_cast<CYString &(*)(Package *, SEL)>(method_getImplementation(class_getInstanceMethod([Package class], @selector(cyname)))); |