S3M import: fix porta persistence

issue #1969
This commit is contained in:
tildearrow 2024-06-28 16:51:33 -05:00
parent 4485256b6a
commit 2f5e9bbf20

View file

@ -903,6 +903,9 @@ bool DivEngine::loadS3M(unsigned char* file, size_t len) {
portaStatus[chan]=effectVal;
portaStatusChanged[chan]=true;
}
if (hasNoteIns) {
portaStatusChanged[chan]=true;
}
portaType[chan]=2;
porting[chan]=true;
break;
@ -911,6 +914,9 @@ bool DivEngine::loadS3M(unsigned char* file, size_t len) {
portaStatus[chan]=effectVal;
portaStatusChanged[chan]=true;
}
if (hasNoteIns) {
portaStatusChanged[chan]=true;
}
portaType[chan]=1;
porting[chan]=true;
break;
@ -919,6 +925,9 @@ bool DivEngine::loadS3M(unsigned char* file, size_t len) {
portaStatus[chan]=effectVal;
portaStatusChanged[chan]=true;
}
if (hasNoteIns) {
portaStatusChanged[chan]=true;
}
portaType[chan]=3;
porting[chan]=true;
break;