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);
+1 -1
View File
@@ -1755,7 +1755,7 @@ void DeveloperToolsScreen::CreateViews() {
list->Add(new ItemHeader(sy->T("General")));
bool canUseJit = true;
bool canUseJit = System_GetPropertyBool(SYSPROP_CAN_JIT);
// iOS can now use JIT on all modes, apparently.
// The bool may come in handy for future non-jit platforms though (UWP XB1?)