GUI: improve debug menu

This commit is contained in:
tildearrow 2022-02-03 18:38:57 -05:00
parent c8f57afda4
commit 584b8426ff
28 changed files with 167 additions and 10 deletions

View file

@ -4775,6 +4775,35 @@ void DivEngine::stop() {
isBusy.unlock();
}
void DivEngine::halt() {
isBusy.lock();
halted=true;
isBusy.unlock();
}
void DivEngine::resume() {
isBusy.lock();
halted=false;
haltOn=DIV_HALT_NONE;
isBusy.unlock();
}
void DivEngine::haltWhen(DivHaltPositions when) {
isBusy.lock();
halted=false;
haltOn=when;
isBusy.unlock();
}
bool DivEngine::isHalted() {
return halted;
}
const char** DivEngine::getRegisterSheet(int sys) {
if (sys<0 || sys>=song.systemLen) return NULL;
return disCont[sys].dispatch->getRegisterSheet();
}
void DivEngine::recalcChans() {
chans=0;
int chanIndex=0;