GUI: implement "clear all subsongs"

This commit is contained in:
tildearrow 2022-05-17 01:42:21 -05:00
parent b8a4fdb4c6
commit c4614bff30
3 changed files with 14 additions and 4 deletions

View file

@ -813,6 +813,16 @@ bool DivEngine::removeSubSong(int index) {
return true;
}
void DivEngine::clearSubSongs() {
BUSY_BEGIN;
saveLock.lock();
song.clearSongData();
changeSong(0);
curOrder=0;
saveLock.unlock();
BUSY_END;
}
void DivEngine::changeSystem(int index, DivSystem which, bool preserveOrder) {
int chanCount=chans;
quitDispatch();