From aa9b7a305a9422b3a20160e37a63c1383e7522e1 Mon Sep 17 00:00:00 2001 From: Sven <40953353+RetroSven@users.noreply.github.com> Date: Sat, 11 Aug 2018 11:37:09 -0400 Subject: [PATCH] add memory hooks for cheat/rumble --- libretro/libretro-core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libretro/libretro-core.c b/libretro/libretro-core.c index 59fca65..040a49d 100644 --- a/libretro/libretro-core.c +++ b/libretro/libretro-core.c @@ -742,13 +742,15 @@ bool retro_unserialize(const void *data_, size_t size) void *retro_get_memory_data(unsigned id) { - (void)id; + if ( id == RETRO_MEMORY_SYSTEM_RAM ) + return MEMORY_mem; return NULL; } size_t retro_get_memory_size(unsigned id) { - (void)id; + if ( id == RETRO_MEMORY_SYSTEM_RAM ) + return 65536; return 0; }