From: Andre Leiradella Date: Tue, 18 Apr 2017 20:08:50 +0000 (+0100) Subject: Return correct memory info for SMS X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11077d343a16f48a80a5c617b71cf27f91d296d5;p=picodrive.git Return correct memory info for SMS --- 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);