Fix CpuCore select

This commit is contained in:
Halo-Michael 2022-05-30 06:32:18 +08:00
parent c69dd2f2e4
commit a709e8eaa8
3 changed files with 7 additions and 1 deletions

View File

@ -1527,7 +1527,11 @@ 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
}
return true;
}

View File

@ -29,6 +29,8 @@
extern const char *PPSSPP_GIT_VERSION;
extern bool jitForcedOff;
enum ChatPositions {
BOTTOM_LEFT = 0,
BOTTOM_CENTER = 1,

View File

@ -770,7 +770,7 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
// Just gonna force it to the IR interpreter on startup.
// We don't hide the option, but we make sure it's off on bootup. In case someone wants
// to experiment in future iOS versions or something...
g_Config.iCpuCore = (int)CPUCore::IR_JIT;
jitForcedOff = true;
}
auto des = GetI18NCategory("DesktopUI");