aboutsummaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/libretro.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c
index a69ad02..992da60 100644
--- a/frontend/libretro.c
+++ b/frontend/libretro.c
@@ -1364,6 +1364,8 @@ void *retro_get_memory_data(unsigned id)
{
if (id == RETRO_MEMORY_SAVE_RAM)
return Mcd1Data;
+ else if (id == RETRO_MEMORY_SYSTEM_RAM)
+ return psxM;
else
return NULL;
}
@@ -1372,6 +1374,8 @@ size_t retro_get_memory_size(unsigned id)
{
if (id == RETRO_MEMORY_SAVE_RAM)
return MCD_SIZE;
+ else if (id == RETRO_MEMORY_SYSTEM_RAM)
+ return 0x210000;
else
return 0;
}