libretro: Fix cheevos memory map for GB games using external RAM

This commit is contained in:
negativeExponent 2020-05-10 19:03:04 +08:00 committed by Vicki Pfau
parent 274a97a5f0
commit f6523e2c01
1 changed files with 3 additions and 3 deletions

View File

@ -463,7 +463,7 @@ static void _setupMaps(struct mCore* core) {
/* Map VRAM */ /* Map VRAM */
descs[i].ptr = gb->video.vram; descs[i].ptr = gb->video.vram;
descs[i].start = GB_BASE_VRAM; descs[i].start = GB_BASE_VRAM;
descs[i].len = GB_SIZE_VRAM; descs[i].len = GB_SIZE_VRAM_BANK0;
i++; i++;
/* Map working RAM */ /* Map working RAM */
@ -505,8 +505,8 @@ static void _setupMaps(struct mCore* core) {
i++; i++;
/* Map External RAM */ /* Map External RAM */
if (savedataSize) { if (gb->memory.sram) {
descs[i].ptr = savedata; descs[i].ptr = gb->memory.sram;
descs[i].start = GB_BASE_EXTERNAL_RAM; descs[i].start = GB_BASE_EXTERNAL_RAM;
descs[i].len = savedataSize; descs[i].len = savedataSize;
i++; i++;