Merge pull request #1022 from tildearrow/x1_010_bank

Add Seta 2 Bankswitch support
This commit is contained in:
tildearrow 2023-08-30 02:22:18 -05:00 committed by GitHub
commit ff3cebfffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 8 deletions

View file

@ -1016,6 +1016,7 @@ bool FurnaceGUI::drawSysConf(int chan, DivSystem type, DivConfig& flags, bool mo
case DIV_SYSTEM_X1_010: {
int clockSel=flags.getInt("clockSel",0);
bool stereo=flags.getBool("stereo",false);
bool isBanked=flags.getBool("isBanked",false);
ImGui::Text("Clock rate:");
ImGui::Indent();
@ -1037,10 +1038,15 @@ bool FurnaceGUI::drawSysConf(int chan, DivSystem type, DivConfig& flags, bool mo
altered=true;
}
if (ImGui::Checkbox("Bankswitched (Seta 2)",&isBanked)) {
altered=true;
}
if (altered) {
e->lockSave([&]() {
flags.set("clockSel",clockSel);
flags.set("stereo",stereo);
flags.set("isBanked",isBanked);
});
}
break;