GUI: implement "clear all subsongs"
This commit is contained in:
parent
b8a4fdb4c6
commit
c4614bff30
3 changed files with 14 additions and 4 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue