[libretro] fixed incorrect system RAM report when emulated system hardware is set to "SYSTEM_SMS"

This commit is contained in:
EkeEke 2017-08-19 15:13:03 +02:00
parent f5e425b92a
commit 65f34f36da
2 changed files with 1 additions and 6 deletions

Binary file not shown.

View File

@ -2137,12 +2137,7 @@ void *retro_get_memory_data(unsigned id)
case RETRO_MEMORY_SAVE_RAM:
return sram.sram;
case RETRO_MEMORY_SYSTEM_RAM:
if (system_hw == SYSTEM_SMS)
return zram; // 0x2000 = 8kb z80 ram
else
return work_ram; //0x10000 = 64kb 68000 ram
return work_ram;
default:
return NULL;
}