Make the IRJit core selectable in developer tools

This commit is contained in:
Henrik Rydgard committed 2016-05-08 01:43:27 +02:00
1 parent 09969c0156
commit ce8aae5ed1
17 files changed
+84 -45

No files matched your search

+5 -2
View File
@@ -1059,8 +1059,11 @@ void DeveloperToolsScreen::CreateViews() {
}
}
#endif
if (canUseJit) {
list->Add(new CheckBox(&g_Config.bJit, sy->T("Dynarec", "Dynarec (JIT)")))->OnClick.Handle(this, &DeveloperToolsScreen::OnJitAffectingSetting);
static const char *cpuCores[] = { "Interpreter", "Dynarec (JIT)", "IRJit" };
PopupMultiChoice *core = list->Add(new PopupMultiChoice(&g_Config.iCpuCore, gr->T("CPU Core"), cpuCores, 0, ARRAY_SIZE(cpuCores), sy->GetName(), screenManager()));
if (!canUseJit) {
core->HideChoice(1);
}
list->Add(new CheckBox(&g_Config.bShowDeveloperMenu, dev->T("Show Developer Menu")));