From 976597fa3ab3dc69dbcd3a3bb2e6a995c087cf9a Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 23 Nov 2022 17:56:34 -0800 Subject: [PATCH] iOS: Allow using interpreter. --- Core/Config.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Core/Config.cpp b/Core/Config.cpp index 4b75a46c54..35a05ba910 100644 --- a/Core/Config.cpp +++ b/Core/Config.cpp @@ -1467,7 +1467,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) { // Override ppsspp.ini JIT value to prevent crashing if (DefaultCpuCore() != (int)CPUCore::JIT && g_Config.iCpuCore == (int)CPUCore::JIT) { jitForcedOff = true; - g_Config.iCpuCore = (int)CPUCore::INTERPRETER; + g_Config.iCpuCore = (int)CPUCore::IR_JIT; } // Automatically silence secondary instances. Could be an option I guess, but meh. @@ -1589,11 +1589,8 @@ bool Config::Save(const char *saveReason) { } if (jitForcedOff) { // force JIT off again just in case Config::Save() is called without exiting PPSSPP -#if PPSSPP_PLATFORM(IOS) - g_Config.iCpuCore = (int)CPUCore::IR_JIT; -#else - g_Config.iCpuCore = (int)CPUCore::INTERPRETER; -#endif + if (g_Config.iCpuCore != (int)CPUCore::INTERPRETER) + g_Config.iCpuCore = (int)CPUCore::IR_JIT; } return true; }