Merge pull request #69 from nadavbh12/master

implemented get RETRO_MEMORY_SYSTEM_RAM
This commit is contained in:
Twinaphex 2017-01-10 13:49:52 +01:00 committed by GitHub
commit 7e105cf39a

View File

@ -2048,6 +2048,8 @@ void *retro_get_memory_data(unsigned id)
{
case RETRO_MEMORY_SAVE_RAM:
return sram.sram;
case RETRO_MEMORY_SYSTEM_RAM:
return work_ram;
default:
return NULL;
@ -2084,7 +2086,8 @@ size_t retro_get_memory_size(unsigned id)
}
}
}
case RETRO_MEMORY_SYSTEM_RAM:
return 0x10000;
default:
return 0;
}