datalatch mapper-fix bug where wramless games would be able to do something mysterious to unmapped host emulator memory or something creepy like that (fix battletoads sync regression)
This commit is contained in:
parent
fd82c1ee2d
commit
feae56ad1d
|
@ -40,8 +40,15 @@ static void LatchPower(void)
|
||||||
{
|
{
|
||||||
latche=latcheinit;
|
latche=latcheinit;
|
||||||
WSync();
|
WSync();
|
||||||
SetReadHandler(0x6000,0xFFFF,CartBR);
|
if(WRAM)
|
||||||
SetWriteHandler(0x6000,0x7FFF,CartBW);
|
{
|
||||||
|
SetReadHandler(0x6000,0xFFFF,CartBR);
|
||||||
|
SetWriteHandler(0x6000,0x7FFF,CartBW);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetReadHandler(0x8000,0xFFFF,CartBR);
|
||||||
|
}
|
||||||
SetWriteHandler(addrreg0,addrreg1,LatchWrite);
|
SetWriteHandler(addrreg0,addrreg1,LatchWrite);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue