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 */
|
/* 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++;
|
||||||
|
|
Loading…
Reference in New Issue