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 */
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++;