Libretro: Expose FCRAM pointer

This commit is contained in:
Jonian Guveli 2024-08-18 23:02:02 +03:00
parent 27de70dce9
commit 24bb295d82

View file

@ -368,7 +368,7 @@ uint retro_api_version() { return RETRO_API_VERSION; }
usize retro_get_memory_size(uint id) {
if (id == RETRO_MEMORY_SYSTEM_RAM) {
return 0;
return Memory::FCRAM_SIZE;
}
return 0;
@ -376,7 +376,7 @@ usize retro_get_memory_size(uint id) {
void* retro_get_memory_data(uint id) {
if (id == RETRO_MEMORY_SYSTEM_RAM) {
return 0;
return emulator->getMemory().getFCRAM();
}
return nullptr;