summaryrefslogtreecommitdiff
path: root/MobileCydia.mm
diff options
context:
space:
mode:
Diffstat (limited to 'MobileCydia.mm')
-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];