Merge pull request #15563 from Halo-Michael/cpucorefix

Config: Don't save CPUCore unless changed
This commit is contained in:
Henrik Rydgård
2022-05-30 01:13:59 +02:00
committed by GitHub
3 changed files with 7 additions and 1 deletions
+4
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;
}
+2
View File
@@ -29,6 +29,8 @@
extern const char *PPSSPP_GIT_VERSION;
extern bool jitForcedOff;
enum ChatPositions {
BOTTOM_LEFT = 0,
BOTTOM_CENTER = 1,
+1 -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");