This commit is contained in:
tildearrow 2022-04-03 17:22:44 -05:00
parent 3a59e260d8
commit d112cd0c68

View file

@ -259,7 +259,9 @@ bool DivEngine::loadDMF(unsigned char* file, size_t len) {
// instruments in ancient versions were all FM or STD.
ins->mode=1;
} else {
ins->mode=reader.readC();
unsigned char mode=reader.readC();
if (mode>1) logW("%d: invalid instrument mode %d!\n",i,mode);
ins->mode=mode;
}
ins->type=ins->mode?DIV_INS_FM:DIV_INS_STD;
if (ds.system[0]==DIV_SYSTEM_GB) {