notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1bd063
)
fix bug with memory card files being overwritten with RTC files
author
ToadKing
<toadking@toadking.com>
Tue, 7 May 2013 21:17:46 +0000
(17:17 -0400)
committer
ToadKing
<toadking@toadking.com>
Tue, 7 May 2013 21:17:46 +0000
(17:17 -0400)
frontend/libretro.c
patch
|
blob
|
blame
|
history
diff --git
a/frontend/libretro.c
b/frontend/libretro.c
index
b8a5b77
..
9e73fc7
100644
(file)
--- 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)