fix .dmp loading for Neo Geo presets
This commit is contained in:
parent
023d065fcc
commit
3c5d71ce4c
|
@ -150,6 +150,10 @@ void DivEngine::loadDMP(SafeReader& reader, std::vector<DivInstrument*>& ret, St
|
||||||
ins->type=DIV_INS_FM;
|
ins->type=DIV_INS_FM;
|
||||||
logD("instrument type is Arcade");
|
logD("instrument type is Arcade");
|
||||||
break;
|
break;
|
||||||
|
case 9: // Neo Geo
|
||||||
|
ins->type=DIV_INS_FM;
|
||||||
|
logD("instrument type is Neo Geo");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
logD("instrument type is unknown");
|
logD("instrument type is unknown");
|
||||||
lastError="unknown instrument type!";
|
lastError="unknown instrument type!";
|
||||||
|
@ -171,7 +175,13 @@ void DivEngine::loadDMP(SafeReader& reader, std::vector<DivInstrument*>& ret, St
|
||||||
mode=reader.readC();
|
mode=reader.readC();
|
||||||
logD("instrument mode is %d",mode);
|
logD("instrument mode is %d",mode);
|
||||||
if (mode==0) {
|
if (mode==0) {
|
||||||
if (ins->type==DIV_INS_FM) ins->type=DIV_INS_STD;
|
if (ins->type==DIV_INS_FM) {
|
||||||
|
if (sys==9) {
|
||||||
|
ins->type=DIV_INS_AY;
|
||||||
|
} else {
|
||||||
|
ins->type=DIV_INS_STD;
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ins->type=DIV_INS_FM;
|
ins->type=DIV_INS_FM;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue