Improve checks for JIT ability

Prep for iOS
This commit is contained in:
Henrik Rydgård committed 2024-05-03 16:49:28 +02:00
1 parent 0506adb65c
commit e7cfb5234f
2 files changed
+8 -1

No files matched your search

+7
View File
@@ -1227,6 +1227,13 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
ResetControlLayout();
}
// Force JIT setting to a valid value for the current system configuration.
if (!System_GetPropertyBool(SYSPROP_CAN_JIT)) {
if (g_Config.iCpuCore == (int)CPUCore::JIT || g_Config.iCpuCore == (int)CPUCore::JIT_IR) {
g_Config.iCpuCore = (int)CPUCore::IR_INTERPRETER;
}
}
const char *gitVer = PPSSPP_GIT_VERSION;
Version installed(gitVer);
Version upgrade(upgradeVersion);