From 15fdb8c851919acfeab9ce0d7765770c6ddb7834 Mon Sep 17 00:00:00 2001 From: celerizer <33245078+celerizer@users.noreply.github.com> Date: Tue, 31 Oct 2017 00:09:43 -0500 Subject: [PATCH] Add files via upload Add system RAM to retro_get_memory_data --- libretro.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libretro.cpp b/libretro.cpp index 47e308cd..39d41ed9 100644 --- a/libretro.cpp +++ b/libretro.cpp @@ -4295,6 +4295,8 @@ void *retro_get_memory_data(unsigned type) switch (type) { + case RETRO_MEMORY_SYSTEM_RAM: + return MainRAM.data8; case RETRO_MEMORY_SAVE_RAM: if (use_mednafen_memcard0_method) return NULL;