summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-03-10 20:58:05 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2011-03-10 20:58:05 -0800
commit9a4a4754594b4db37bc2d6776a9fdecc2462f289 (patch)
tree72a3cccb78e5b5b1431cc9c30edce372fb2ec572
parentb6f9e52acfe57d119e3f85cd5982497be0a491e8 (diff)
Setup global X.Y Firmware_.
-rw-r--r--MobileCydia.mm5
1 files changed, 5 insertions, 0 deletions
diff --git a/MobileCydia.mm b/MobileCydia.mm
index 6b23cf5..7709d76 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -713,6 +713,7 @@ static time_t now_;
bool IsWildcat_;
static CGFloat ScreenScale_;
static NSString *Idiom_;
+static NSString *Firmware_;
static _H<NSMutableDictionary> SessionData_;
static _H<NSObject> HostConfig_;
@@ -10020,6 +10021,10 @@ int main(int argc, char *argv[]) {
NSLog(@"unknown UIUserInterfaceIdiom!");
}
+ Pcre pattern("^([0-9]+\\.[0-9]+)");
+ if (pattern([device systemVersion]))
+ Firmware_ = pattern[1];
+
SessionData_ = [NSMutableDictionary dictionaryWithCapacity:4];
HostConfig_ = [[[NSObject alloc] init] autorelease];