Merge pull request #77 from ARoxdale/master

SMS mode memory fix
This commit is contained in:
Twinaphex 2017-04-19 10:28:28 +02:00 committed by GitHub
commit a814a78cd5

View File

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