fix instrument saving
This commit is contained in:
parent
91a9f5de15
commit
4525e05ec1
1 changed files with 3 additions and 3 deletions
|
|
@ -886,7 +886,7 @@ size_t DivInstrument::writeFeatureLS(SafeWriter* w, std::vector<int>& list, cons
|
|||
|
||||
if (list.empty()) return 0;
|
||||
|
||||
FEATURE_BEGIN("SL");
|
||||
FEATURE_BEGIN("LS");
|
||||
|
||||
w->writeS(list.size());
|
||||
|
||||
|
|
@ -935,7 +935,7 @@ size_t DivInstrument::writeFeatureLW(SafeWriter* w, std::vector<int>& list, cons
|
|||
|
||||
if (list.empty()) return 0;
|
||||
|
||||
FEATURE_BEGIN("WL");
|
||||
FEATURE_BEGIN("LW");
|
||||
|
||||
w->writeS(list.size());
|
||||
|
||||
|
|
@ -2832,7 +2832,7 @@ DivDataErrors DivInstrument::readInsDataNew(SafeReader& reader, short version, b
|
|||
} else if (memcmp(featCode,"S3",2)==0) { // SID3
|
||||
readFeatureS3(reader,version);
|
||||
} else {
|
||||
if (song==NULL && (memcmp(featCode,"SL",2)==0 || (memcmp(featCode,"WL",2)==0))) {
|
||||
if (song==NULL && (memcmp(featCode,"SL",2)==0 || (memcmp(featCode,"WL",2)==0) || (memcmp(featCode,"LS",2)==0) || (memcmp(featCode,"LW",2)==0))) {
|
||||
// nothing
|
||||
} else {
|
||||
logW("unknown feature code %c%c!",featCode[0],featCode[1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue