Merge pull request #5928 from thedax/jitOptionIngame

Don't allow switching between JIT/interpreter when a game is running.
This commit is contained in:
Henrik Rydgård 2014-04-22 09:10:07 +02:00
commit 99591d4a11

View file

@ -572,10 +572,14 @@ void DeveloperToolsScreen::CreateViews() {
if (!iosCanUseJit) {
list->Add(new TextView(s->T("DynarecisJailed", "Dynarec (JIT) - (Not jailbroken - JIT not available)")));
} else {
list->Add(new CheckBox(&g_Config.bJit, s->T("Dynarec", "Dynarec (JIT)")));
auto jitCheckbox = new CheckBox(&g_Config.bJit, s->T("Dynarec", "Dynarec (JIT)"));
jitCheckbox->SetEnabled(!PSP_IsInited());
list->Add(jitCheckbox);
}
#else
list->Add(new CheckBox(&g_Config.bJit, s->T("Dynarec", "Dynarec (JIT)")));
auto jitCheckbox = new CheckBox(&g_Config.bJit, s->T("Dynarec", "Dynarec (JIT)"));
jitCheckbox->SetEnabled(!PSP_IsInited());
list->Add(jitCheckbox);
#endif
list->Add(new Choice(de->T("System Information")))->OnClick.Handle(this, &DeveloperToolsScreen::OnSysInfo);