mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-12-27 19:51:48 +01:00
changed retro_get_memory_data to return 8kb z80 memory when in SMS mode
This commit is contained in:
parent
f64e75559c
commit
e5ee10d690
@ -2136,7 +2136,12 @@ void *retro_get_memory_data(unsigned id)
|
|||||||
case RETRO_MEMORY_SAVE_RAM:
|
case RETRO_MEMORY_SAVE_RAM:
|
||||||
return sram.sram;
|
return sram.sram;
|
||||||
case RETRO_MEMORY_SYSTEM_RAM:
|
case RETRO_MEMORY_SYSTEM_RAM:
|
||||||
return work_ram;
|
|
||||||
|
if (system_hw == SYSTEM_SMS){
|
||||||
|
return zram; // 0x2000 = 8kb z80 ram
|
||||||
|
}else{
|
||||||
|
return work_ram; //0x10000 = 16kb 68000 ram
|
||||||
|
}
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user