mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-04 03:35:19 +02:00
UI: Forget jit override on user selection.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -568,6 +568,8 @@ public:
|
||||
bool LoadAppendedConfig();
|
||||
void SetAppendedConfigIni(const Path &path);
|
||||
|
||||
void NotifyUpdatedCpuCore();
|
||||
|
||||
protected:
|
||||
void LoadStandardControllerIni();
|
||||
void LoadLangValuesMapping();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user