mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-28 18:41:16 +00:00
fix non-STD instruments in C64/GB/PCE converting
to the wrong type
This commit is contained in:
parent
ed05bc4d61
commit
82703a165f
1 changed files with 19 additions and 1 deletions
|
@ -4155,7 +4155,25 @@ SafeWriter* DivEngine::saveDMF(unsigned char version) {
|
|||
|
||||
// safety check
|
||||
if (!isFMSystem(sys) && i->type!=DIV_INS_STD && i->type!=DIV_INS_FDS) {
|
||||
i->type=DIV_INS_STD;
|
||||
switch (song.system[0]) {
|
||||
case DIV_SYSTEM_GB:
|
||||
i->type=DIV_INS_GB;
|
||||
break;
|
||||
case DIV_SYSTEM_C64_6581:
|
||||
case DIV_SYSTEM_C64_8580:
|
||||
i->type=DIV_INS_C64;
|
||||
break;
|
||||
case DIV_SYSTEM_PCE:
|
||||
i->type=DIV_INS_PCE;
|
||||
break;
|
||||
case DIV_SYSTEM_YM2610:
|
||||
case DIV_SYSTEM_YM2610_EXT:
|
||||
i->type=DIV_INS_AY;
|
||||
break;
|
||||
default:
|
||||
i->type=DIV_INS_STD;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!isSTDSystem(sys) && i->type!=DIV_INS_FM) {
|
||||
i->type=DIV_INS_FM;
|
||||
|
|
Loading…
Reference in a new issue