mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 03:35:19 +02:00
Merge pull request #15563 from Halo-Michael/cpucorefix
Config: Don't save CPUCore unless changed
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
|
||||
extern const char *PPSSPP_GIT_VERSION;
|
||||
|
||||
extern bool jitForcedOff;
|
||||
|
||||
enum ChatPositions {
|
||||
BOTTOM_LEFT = 0,
|
||||
BOTTOM_CENTER = 1,
|
||||
|
||||
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user