report non-memorymap gba cores as unsupported

This commit is contained in:
Jamiras 2020-04-04 09:13:10 -06:00
parent 1d7cae2ceb
commit a08840de6d

View File

@ -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;