From 65ede37b06ca5e59adb10c02850f825c2f431c7b Mon Sep 17 00:00:00 2001 From: ToadKing Date: Tue, 7 May 2013 17:17:46 -0400 Subject: [PATCH] fix bug with memory card files being overwritten with RTC files --- frontend/libretro.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/libretro.c b/frontend/libretro.c index b8a5b77b..9e73fc7a 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) -- 2.39.5