Disable the JIT hackery in app store builds

This commit is contained in:
Henrik Rydgård committed 2024-05-20 10:04:11 +02:00
1 parent 1f13eaa874
commit f6f45dda0a
5 files changed
+34 -16

No files matched your search

+8
View File
@@ -1168,6 +1168,14 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
if (iMaxRecent == 0)
iMaxRecent = 60;
// Fix JIT setting if no longer available.
if (!System_GetPropertyBool(SYSPROP_CAN_JIT)) {
if (iCpuCore == (int)CPUCore::JIT || iCpuCore == (int)CPUCore::JIT_IR) {
WARN_LOG(LOADER, "Forcing JIT off due to unavailablility");
iCpuCore = (int)CPUCore::IR_INTERPRETER;
}
}
if (iMaxRecent > 0) {
private_->ResetRecentIsosThread();
std::lock_guard<std::mutex> guard(private_->recentIsosLock);