From a3725fd81fbd3c779753aea351efeb0193a56ac9 Mon Sep 17 00:00:00 2001 From: negativeExponent Date: Sat, 5 Sep 2020 20:54:47 +0800 Subject: Remove ewram from libretro api - Removing RETRO_SYSTEM_MEMORY from retro_get_memory_data/size since its incompatible for 2 reasons: 1. gba uses at least 2 blocks of memory, which is not supported 2. the way gpsp's memory block are not contiguous (see memory descriptors) --- libretro.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libretro.c b/libretro.c index b37a94e..d1f2562 100644 --- a/libretro.c +++ b/libretro.c @@ -669,8 +669,6 @@ void* retro_get_memory_data(unsigned id) { switch (id) { - case RETRO_MEMORY_SYSTEM_RAM: - return ewram; case RETRO_MEMORY_SAVE_RAM: if (use_libretro_save_method) return gamepak_backup; @@ -686,9 +684,6 @@ size_t retro_get_memory_size(unsigned id) { switch (id) { - case RETRO_MEMORY_SYSTEM_RAM: - return 1024 * 256 * 2; - case RETRO_MEMORY_SAVE_RAM: if (use_libretro_save_method) { -- cgit v1.2.3