warn user if we cannot play

This commit is contained in:
tildearrow 2023-09-09 17:12:49 -05:00
parent c6c05582bd
commit a7ded3325a
3 changed files with 16 additions and 8 deletions

View file

@ -1105,9 +1105,13 @@ void FurnaceGUI::play(int row) {
memset(lastIns,-1,sizeof(int)*DIV_MAX_CHANS);
if (!followPattern) e->setOrder(curOrder);
if (row>0) {
e->playToRow(row);
if (!e->playToRow(row)) {
showError("the song is over!");
}
} else {
e->play();
if (!e->play()) {
showError("the song is over!");
}
}
curNibble=false;
orderNibble=false;