GUI: why are there DPCM settings on FDS...

This commit is contained in:
tildearrow 2023-08-21 16:16:50 -05:00
parent f3c438eee5
commit 18dc353392
1 changed files with 30 additions and 4 deletions

View File

@ -484,10 +484,7 @@ bool FurnaceGUI::drawSysConf(int chan, DivSystem type, DivConfig& flags, bool mo
}
break;
}
case DIV_SYSTEM_NES:
case DIV_SYSTEM_VRC6:
case DIV_SYSTEM_FDS:
case DIV_SYSTEM_MMC5: {
case DIV_SYSTEM_NES: {
int clockSel=flags.getInt("clockSel",0);
bool dpcmMode=flags.getBool("dpcmMode",true);
@ -529,6 +526,35 @@ bool FurnaceGUI::drawSysConf(int chan, DivSystem type, DivConfig& flags, bool mo
}
break;
}
case DIV_SYSTEM_VRC6:
case DIV_SYSTEM_FDS:
case DIV_SYSTEM_MMC5: {
int clockSel=flags.getInt("clockSel",0);
ImGui::Text("Clock rate:");
ImGui::Indent();
if (ImGui::RadioButton("NTSC (1.79MHz)",clockSel==0)) {
clockSel=0;
altered=true;
}
if (ImGui::RadioButton("PAL (1.67MHz)",clockSel==1)) {
clockSel=1;
altered=true;
}
if (ImGui::RadioButton("Dendy (1.77MHz)",clockSel==2)) {
clockSel=2;
altered=true;
}
ImGui::Unindent();
if (altered) {
e->lockSave([&]() {
flags.set("clockSel",clockSel);
});
}
break;
}
case DIV_SYSTEM_C64_8580:
case DIV_SYSTEM_C64_6581: {
int clockSel=flags.getInt("clockSel",0);