mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
prevent invalid memory reference if game has achievements but core doesn't expose memory (#14391)
This commit is contained in:
parent
84f599503d
commit
3601610b6f
@ -1198,8 +1198,15 @@ void rcheevos_test(void)
|
||||
|
||||
/* We were unable to initialize memory earlier, try now */
|
||||
if (rcheevos_locals.memory.count == 0)
|
||||
{
|
||||
rcheevos_validate_memrefs(&rcheevos_locals);
|
||||
|
||||
/* rcheevos_validate_memrefs may decide the core doesn't support achievements and
|
||||
* disable them. if so, bail. */
|
||||
if (!rcheevos_locals.loaded)
|
||||
return;
|
||||
}
|
||||
|
||||
rc_runtime_do_frame(&rcheevos_locals.runtime,
|
||||
&rcheevos_runtime_event_handler, rcheevos_peek, NULL, 0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user