fix instrument loading
after an SL or WL block it wouldn't load anything else
This commit is contained in:
parent
972dc85a71
commit
f1afa423d4
|
@ -922,6 +922,7 @@ void DivInstrument::putInsData2(SafeWriter* w, bool fui, const DivSong* song, bo
|
||||||
case DIV_INS_NES:
|
case DIV_INS_NES:
|
||||||
featureSM=true;
|
featureSM=true;
|
||||||
featureNE=true;
|
featureNE=true;
|
||||||
|
featureSL=true;
|
||||||
break;
|
break;
|
||||||
case DIV_INS_MSM6258:
|
case DIV_INS_MSM6258:
|
||||||
featureSM=true;
|
featureSM=true;
|
||||||
|
@ -2438,7 +2439,7 @@ void DivInstrument::readFeatureSL(SafeReader& reader, DivSong* song, short versi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
reader.seek(lastSeek,SEEK_CUR);
|
reader.seek(lastSeek,SEEK_SET);
|
||||||
|
|
||||||
// re-map samples
|
// re-map samples
|
||||||
if (amiga.initSample>=0 && amiga.initSample<256) {
|
if (amiga.initSample>=0 && amiga.initSample<256) {
|
||||||
|
@ -2497,7 +2498,7 @@ void DivInstrument::readFeatureWL(SafeReader& reader, DivSong* song, short versi
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
reader.seek(lastSeek,SEEK_CUR);
|
reader.seek(lastSeek,SEEK_SET);
|
||||||
|
|
||||||
// re-map wavetables
|
// re-map wavetables
|
||||||
if (ws.enabled) {
|
if (ws.enabled) {
|
||||||
|
|
Loading…
Reference in a new issue