prepare to add function to find sub-songs
for import
This commit is contained in:
parent
76417e6769
commit
ba3a7467c4
|
@ -623,6 +623,9 @@ bool DivEngine::loadIT(unsigned char* file, size_t len) {
|
|||
}
|
||||
ds.systemLen=(maxChan+32)>>5;
|
||||
|
||||
// find subsongs
|
||||
ds.findSubSongs();
|
||||
|
||||
if (active) quitDispatch();
|
||||
BUSY_BEGIN_SOFT;
|
||||
saveLock.lock();
|
||||
|
|
|
@ -418,6 +418,9 @@ bool DivEngine::loadMod(unsigned char* file, size_t len) {
|
|||
}
|
||||
ds.insLen=ds.ins.size();
|
||||
|
||||
// find subsongs
|
||||
ds.findSubSongs();
|
||||
|
||||
if (active) quitDispatch();
|
||||
BUSY_BEGIN_SOFT;
|
||||
saveLock.lock();
|
||||
|
|
|
@ -999,6 +999,9 @@ bool DivEngine::loadS3M(unsigned char* file, size_t len) {
|
|||
}
|
||||
}
|
||||
|
||||
// find subsongs
|
||||
ds.findSubSongs();
|
||||
|
||||
if (active) quitDispatch();
|
||||
BUSY_BEGIN_SOFT;
|
||||
saveLock.lock();
|
||||
|
|
|
@ -370,6 +370,9 @@ bool DivEngine::loadXM(unsigned char* file, size_t len) {
|
|||
|
||||
ds.sampleLen=ds.sample.size();
|
||||
|
||||
// find subsongs
|
||||
ds.findSubSongs();
|
||||
|
||||
if (active) quitDispatch();
|
||||
BUSY_BEGIN_SOFT;
|
||||
saveLock.lock();
|
||||
|
|
|
@ -128,6 +128,10 @@ void DivSubSong::makePatUnique() {
|
|||
}
|
||||
}
|
||||
|
||||
void DivSong::findSubSongs() {
|
||||
|
||||
}
|
||||
|
||||
void DivSong::clearSongData() {
|
||||
for (DivSubSong* i: subsong) {
|
||||
i->clearData();
|
||||
|
|
|
@ -353,6 +353,11 @@ struct DivSong {
|
|||
DivWavetable nullWave;
|
||||
DivSample nullSample;
|
||||
|
||||
/**
|
||||
* find data past 0Bxx effects and place that into new sub-songs.
|
||||
*/
|
||||
void findSubSongs();
|
||||
|
||||
/**
|
||||
* clear orders and patterns.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue