UI: Forget jit override on user selection.

This commit is contained in:
Unknown W. Brackets
2023-02-28 06:58:30 -08:00
parent 891cc49beb
commit f199a0fee3
3 changed files with 13 additions and 0 deletions
+7
View File
@@ -1603,6 +1603,13 @@ void Config::PostSaveCleanup(bool gameSpecific) {
}
}
void Config::NotifyUpdatedCpuCore() {
if (jitForcedOff && g_Config.iCpuCore == (int)CPUCore::IR_JIT) {
// No longer forced off, the user set it to IR jit.
jitForcedOff = false;
}
}
// Use for debugging the version check without messing with the server
#if 0
#define PPSSPP_GIT_VERSION "v0.0.1-gaaaaaaaaa"
+2
View File
@@ -568,6 +568,8 @@ public:
bool LoadAppendedConfig();
void SetAppendedConfigIni(const Path &path);
void NotifyUpdatedCpuCore();
protected:
void LoadStandardControllerIni();
void LoadLangValuesMapping();
+4
View File
@@ -1774,6 +1774,10 @@ void DeveloperToolsScreen::CreateViews() {
static const char *cpuCores[] = {"Interpreter", "Dynarec (JIT)", "IR Interpreter"};
PopupMultiChoice *core = list->Add(new PopupMultiChoice(&g_Config.iCpuCore, gr->T("CPU Core"), cpuCores, 0, ARRAY_SIZE(cpuCores), sy->GetName(), screenManager()));
core->OnChoice.Handle(this, &DeveloperToolsScreen::OnJitAffectingSetting);
core->OnChoice.Add([](UI::EventParams &) {
g_Config.NotifyUpdatedCpuCore();
return UI::EVENT_DONE;
});
if (!canUseJit) {
core->HideChoice(1);
}