- Pcre pattern("^([0-9]+\\.[0-9]+)");
-
- if (pattern([[UIDevice currentDevice] systemVersion]))
- Firmware_ = pattern[1];
+ size_t size;
+ sysctlbyname("kern.osversion", NULL, &size, NULL, 0);
+ char *osversion = new char[size];
+ if (sysctlbyname("kern.osversion", osversion, &size, NULL, 0) != -1)
+ System_ = [NSString stringWithUTF8String:osversion];