Fix sram saving and loading for some games

Some games (eg. Sonic 3 & Knuckles) have sram but the core doesn't set
"sram.start" and "sram.end". In any case, this constant is used in
source/win/main.c.

Signed-off-by: Saggi Mizrahi <ficoos@gmail.com>
This commit is contained in:
Saggi Mizrahi 2012-08-17 20:59:39 -04:00
parent ca9173cc58
commit ac00116e10

View File

@ -892,7 +892,7 @@ size_t retro_get_memory_size(unsigned id)
switch (id)
{
case RETRO_MEMORY_SAVE_RAM:
return sram.end - sram.start;
return 0x10000;
default:
return 0;