YM2612: surprise addition

This commit is contained in:
tildearrow 2024-07-06 12:28:56 -05:00
parent 71f67b4d40
commit 221bc23955
3 changed files with 22 additions and 0 deletions

View file

@ -42,6 +42,7 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
} else {
chipType=flags.getBool("ladderEffect",0)?1:0;
}
int interruptSimCycles=flags.getInt("interruptSimCycles",0);
bool noExtMacros=flags.getBool("noExtMacros",false);
bool fbAllOps=flags.getBool("fbAllOps",false);
bool msw=flags.getBool("msw",false);
@ -100,6 +101,13 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
altered=true;
}
}
ImGui::Text(_("DAC interrupt simulation:"));
if (CWSliderInt(_("cycles##InterruptSim"),&interruptSimCycles,0,256)) {
if (interruptSimCycles<0) interruptSimCycles=0;
if (interruptSimCycles>256) interruptSimCycles=256;
altered=true;
} rightClickable
if (altered) {
e->lockSave([&]() {
@ -108,6 +116,7 @@ bool FurnaceGUI::drawSysConf(int chan, int sysPos, DivSystem type, DivConfig& fl
flags.set("noExtMacros",noExtMacros);
flags.set("fbAllOps",fbAllOps);
flags.set("msw",msw);
flags.set("interruptSimCycles",interruptSimCycles);
});
}
break;