diff options
-rw-r--r-- | frontend/libretro.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/frontend/libretro.c b/frontend/libretro.c index b8a5b77..9e73fc7 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -673,12 +673,18 @@ unsigned retro_get_region(void) void *retro_get_memory_data(unsigned id) { - return Mcd1Data; + if (id == RETRO_MEMORY_SAVE_RAM) + return Mcd1Data; + else + return NULL; } size_t retro_get_memory_size(unsigned id) { - return MCD_SIZE; + if (id == RETRO_MEMORY_SAVE_RAM) + return MCD_SIZE; + else + return 0; } void retro_reset(void) |