mirror of https://github.com/mgba-emu/mgba.git
libretro: Fix cheevos memory map for GB games using external RAM
This commit is contained in:
parent
274a97a5f0
commit
f6523e2c01
|
@ -463,7 +463,7 @@ static void _setupMaps(struct mCore* core) {
|
|||
/* Map VRAM */
|
||||
descs[i].ptr = gb->video.vram;
|
||||
descs[i].start = GB_BASE_VRAM;
|
||||
descs[i].len = GB_SIZE_VRAM;
|
||||
descs[i].len = GB_SIZE_VRAM_BANK0;
|
||||
i++;
|
||||
|
||||
/* Map working RAM */
|
||||
|
@ -505,8 +505,8 @@ static void _setupMaps(struct mCore* core) {
|
|||
i++;
|
||||
|
||||
/* Map External RAM */
|
||||
if (savedataSize) {
|
||||
descs[i].ptr = savedata;
|
||||
if (gb->memory.sram) {
|
||||
descs[i].ptr = gb->memory.sram;
|
||||
descs[i].start = GB_BASE_EXTERNAL_RAM;
|
||||
descs[i].len = savedataSize;
|
||||
i++;
|
||||
|
|
Loading…
Reference in New Issue