mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
Developer tools: Add UI to force-enable HLE of modules that we have disabled HLE of
Can be useful for debugging.
This commit is contained in:
@@ -251,7 +251,7 @@ void DeveloperToolsScreen::CreateHLETab(UI::LinearLayout *list) {
|
||||
for (int i = 0; i < (int)DisableHLEFlags::Count; i++) {
|
||||
DisableHLEFlags flag = (DisableHLEFlags)(1 << i);
|
||||
|
||||
// Show a checkbox, unless the setting has graduated to always on.
|
||||
// Show a checkbox, unless the setting has graduated to always disabled.
|
||||
if (!(flag & AlwaysDisableHLEFlags())) {
|
||||
const HLEModuleMeta *meta = GetHLEModuleMetaByFlag(flag);
|
||||
if (meta) {
|
||||
@@ -260,6 +260,21 @@ void DeveloperToolsScreen::CreateHLETab(UI::LinearLayout *list) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
list->Add(new ItemHeader(dev->T("Force-enable HLE")));
|
||||
|
||||
for (int i = 0; i < (int)DisableHLEFlags::Count; i++) {
|
||||
DisableHLEFlags flag = (DisableHLEFlags)(1 << i);
|
||||
|
||||
// Show a checkbox, only if the setting has graduated to always disabled (and thus it makes sense to force-enable it).
|
||||
if (flag & AlwaysDisableHLEFlags()) {
|
||||
const HLEModuleMeta *meta = GetHLEModuleMetaByFlag(flag);
|
||||
if (meta) {
|
||||
BitCheckBox *checkBox = list->Add(new BitCheckBox(&g_Config.iForceEnableHLE, (int)flag, meta->modname));
|
||||
checkBox->SetEnabled(!PSP_IsInited());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void DeveloperToolsScreen::CreateMIPSTracerTab(UI::LinearLayout *list) {
|
||||
|
||||
Reference in New Issue
Block a user