mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
use default mapping if initializing map with no game loaded (#16396)
This commit is contained in:
parent
595f574f5c
commit
a218c36a0a
@ -216,11 +216,9 @@ static int rcheevos_init_memory(rcheevos_locals_t* locals)
|
||||
unsigned console_id;
|
||||
|
||||
#ifdef HAVE_RC_CLIENT
|
||||
/* we can't initialize memory without knowing which console to initialize for */
|
||||
/* if no game is loaded, fallback to a default mapping (SYSTEM RAM followed by SAVE RAM) */
|
||||
game = rc_client_get_game_info(locals->client);
|
||||
if (!game || !game->console_id)
|
||||
return 0;
|
||||
console_id = game->console_id;
|
||||
console_id = game ? game->console_id : 0;
|
||||
#else
|
||||
console_id = locals->game.console_id;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user