UI: Forget jit override on user selection.

This commit is contained in:
Unknown W. Brackets committed 2023-02-28 06:58:30 -08:00
1 parent 891cc49beb
commit f199a0fee3
3 files changed
+13

No files matched your search

+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);
}