S3M/XM/IT import: fix contiguous slide/porta

This commit is contained in:
tildearrow 2024-07-04 02:42:36 -05:00
parent f68249f52b
commit 8d11b4a840
3 changed files with 36 additions and 3 deletions

View file

@ -913,6 +913,9 @@ bool DivEngine::loadS3M(unsigned char* file, size_t len) {
if (hasNoteIns) {
portaStatusChanged[chan]=true;
}
if (portaType[chan]!=2) {
portaStatusChanged[chan]=true;
}
portaType[chan]=2;
porting[chan]=true;
break;
@ -924,6 +927,9 @@ bool DivEngine::loadS3M(unsigned char* file, size_t len) {
if (hasNoteIns) {
portaStatusChanged[chan]=true;
}
if (portaType[chan]!=1) {
portaStatusChanged[chan]=true;
}
portaType[chan]=1;
porting[chan]=true;
break;
@ -935,6 +941,9 @@ bool DivEngine::loadS3M(unsigned char* file, size_t len) {
if (hasNoteIns) {
portaStatusChanged[chan]=true;
}
if (portaType[chan]!=3) {
portaStatusChanged[chan]=true;
}
portaType[chan]=3;
porting[chan]=true;
break;