]> git.saurik.com Git - cydia.git/commitdiff
Separate UI_ construction into phases.
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 11 Mar 2011 05:01:11 +0000 (21:01 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 11 Mar 2011 05:01:11 +0000 (21:01 -0800)
MobileCydia.mm

index 7709d762ec774de7522e9a9c5b17a117699ce224..4d3c5c684c35fe62dc2cf4e9924ae36ce09b59da 100644 (file)
@@ -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))));