From 11077d343a16f48a80a5c617b71cf27f91d296d5 Mon Sep 17 00:00:00 2001 From: Andre Leiradella Date: Tue, 18 Apr 2017 21:08:50 +0100 Subject: [PATCH] Return correct memory info for SMS --- platform/libretro/libretro.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/libretro/libretro.c b/platform/libretro/libretro.c index a1cf22c8..934b6859 100644 --- a/platform/libretro/libretro.c +++ b/platform/libretro/libretro.c @@ -1126,7 +1126,7 @@ void *retro_get_memory_data(unsigned type) break; case RETRO_MEMORY_SYSTEM_RAM: if (PicoAHW & PAHW_SMS) - data = Pico.vramb; + data = Pico.zram; else data = Pico.ram; break; @@ -1162,7 +1162,7 @@ size_t retro_get_memory_size(unsigned type) case RETRO_MEMORY_SYSTEM_RAM: if (PicoAHW & PAHW_SMS) - return sizeof(Pico.vramb); + return 0x2000; else return sizeof(Pico.ram); -- 2.39.5