mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 03:31:49 +01:00
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:
parent
ca9173cc58
commit
ac00116e10
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user