[Core/MD] fixed SRAM support for Landstalker expanded ROM hacks (fixes Spanish translation black screen when starting a game)

This commit is contained in:
ekeeke 2020-10-31 14:22:58 +01:00
parent 155b982417
commit 298b09fcd1
4 changed files with 12 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.7 MiB

After

Width:  |  Height:  |  Size: 3.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.9 MiB

After

Width:  |  Height:  |  Size: 3.9 MiB

View File

@ -435,6 +435,18 @@ void md_cart_init(void)
}
}
}
/* support for Landstalker expanded ROM hack */
else if ((strstr(rominfo.product,"MK-1353") != NULL))
{
m68k.memory_map[0x20].base = sram.sram;
m68k.memory_map[0x20].read8 = sram_read_byte;
m68k.memory_map[0x20].read16 = sram_read_word;
m68k.memory_map[0x20].write8 = sram_write_byte;
m68k.memory_map[0x20].write16 = sram_write_word;
zbank_memory_map[0x20].read = sram_read_byte;
zbank_memory_map[0x20].write = sram_write_byte;
}
}
/**********************************************