From: ToadKing Date: Tue, 7 May 2013 21:17:46 +0000 (-0400) Subject: fix bug with memory card files being overwritten with RTC files X-Git-Tag: r20~78 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b40a83db932d2c2a250e68a06e88a334509968ec;p=pcsx_rearmed.git fix bug with memory card files being overwritten with RTC files --- 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)