From a08840de6d86d0dc21056424239570c9d108e8c0 Mon Sep 17 00:00:00 2001 From: Jamiras Date: Sat, 4 Apr 2020 09:13:10 -0600 Subject: [PATCH] report non-memorymap gba cores as unsupported --- cheevos-new/fixup.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cheevos-new/fixup.c b/cheevos-new/fixup.c index 08d7ca823d..29783424f3 100644 --- a/cheevos-new/fixup.c +++ b/cheevos-new/fixup.c @@ -248,6 +248,14 @@ const uint8_t* rcheevos_patch_address(unsigned address, int console) } } } + else if (console == RC_CONSOLE_GAMEBOY_ADVANCE) + { + /* The RetroAchievements implementation of memory access for GBA puts the save RAM first, + * so the default looping behavior below is backwards. If the core doesn't expose a + * memory map, say it isn't supported. + */ + pointer = NULL; + } else { unsigned i;