mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
Assign value to version where appropriate
This commit is contained in:
parent
c7f261cf86
commit
58d28b4e4d
@ -98,7 +98,7 @@ static bool g_jitAvailable = false;
|
||||
static int g_iosVersionMinor;
|
||||
*/
|
||||
static int g_iosVersionMajor;
|
||||
static std::string version = [[[UIDevice currentDevice] systemVersion] UTF8String];
|
||||
static std::string version;
|
||||
|
||||
std::string System_GetProperty(SystemProperty prop) {
|
||||
switch (prop) {
|
||||
@ -259,6 +259,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
// So, we'll just resort to a version check.
|
||||
|
||||
version = [[[UIDevice currentDevice] systemVersion] UTF8String];
|
||||
if (2 != sscanf(version.c_str(), "%d", &g_iosVersionMajor)) {
|
||||
// Just set it to 14.0 if the parsing fails for whatever reason.
|
||||
g_iosVersionMajor = 14;
|
||||
|
Loading…
Reference in New Issue
Block a user