fix bug with memory card files being overwritten with RTC files
authorToadKing <toadking@toadking.com>
Tue, 7 May 2013 21:17:46 +0000 (17:17 -0400)
committerToadKing <toadking@toadking.com>
Tue, 7 May 2013 21:17:46 +0000 (17:17 -0400)
frontend/libretro.c

index b8a5b77..9e73fc7 100644 (file)
@@ -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)