SN: possibly fix Game Gear in VGM export
This commit is contained in:
parent
2c368a0ee0
commit
d856ce9ad3
|
@ -29,6 +29,7 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write
|
||||||
unsigned char baseAddr2=isSecond?0x80:0;
|
unsigned char baseAddr2=isSecond?0x80:0;
|
||||||
unsigned short baseAddr2S=isSecond?0x8000:0;
|
unsigned short baseAddr2S=isSecond?0x8000:0;
|
||||||
unsigned char smsAddr=isSecond?0x30:0x50;
|
unsigned char smsAddr=isSecond?0x30:0x50;
|
||||||
|
unsigned char ggAddr=isSecond?0x3f:0x4f;
|
||||||
unsigned char rf5c68Addr=isSecond?0xb1:0xb0;
|
unsigned char rf5c68Addr=isSecond?0xb1:0xb0;
|
||||||
if (write.addr==0xffffffff) { // Furnace fake reset
|
if (write.addr==0xffffffff) { // Furnace fake reset
|
||||||
switch (sys) {
|
switch (sys) {
|
||||||
|
@ -613,7 +614,11 @@ void DivEngine::performVGMWrite(SafeWriter* w, DivSystem sys, DivRegWrite& write
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DIV_SYSTEM_SMS:
|
case DIV_SYSTEM_SMS:
|
||||||
|
if (write.addr==1) {
|
||||||
|
w->writeC(ggAddr);
|
||||||
|
} else {
|
||||||
w->writeC(smsAddr);
|
w->writeC(smsAddr);
|
||||||
|
}
|
||||||
w->writeC(write.val);
|
w->writeC(write.val);
|
||||||
break;
|
break;
|
||||||
case DIV_SYSTEM_T6W28:
|
case DIV_SYSTEM_T6W28:
|
||||||
|
|
Loading…
Reference in a new issue