Libretro: Fix GB SRAM in memory map

This commit is contained in:
Vicki Pfau 2021-04-14 00:02:53 -07:00
parent e9183b4f4a
commit 480d347c47

View File

@ -1715,8 +1715,8 @@ static void _setupMaps(struct mCore* core) {
i++;
/* Map External RAM */
if (gb->memory.sram) {
descs[i].ptr = gb->memory.sram;
if (savedataSize) {
descs[i].ptr = savedata;
descs[i].start = GB_BASE_EXTERNAL_RAM;
descs[i].len = savedataSize;
i++;