From 24bb295d820de201c7369ef1009d988ddf0815f8 Mon Sep 17 00:00:00 2001 From: Jonian Guveli Date: Sun, 18 Aug 2024 23:02:02 +0300 Subject: [PATCH] Libretro: Expose FCRAM pointer --- src/libretro_core.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libretro_core.cpp b/src/libretro_core.cpp index b099067f..304314ba 100644 --- a/src/libretro_core.cpp +++ b/src/libretro_core.cpp @@ -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;