1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-03 08:48:42 +00:00

don't track disc changes when achievements are disabled (#15939)

This commit is contained in:
Jamiras 2023-11-22 09:48:45 -07:00 committed by GitHub
parent 4fd118f446
commit c2f32a434d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3301,8 +3301,11 @@ static void rcheevos_client_change_media_callback(int result,
void rcheevos_change_disc(const char* new_disc_path, bool initial_disc)
{
rc_client_begin_change_media(rcheevos_locals.client, new_disc_path,
NULL, 0, rcheevos_client_change_media_callback, NULL);
if (rcheevos_locals.client)
{
rc_client_begin_change_media(rcheevos_locals.client, new_disc_path,
NULL, 0, rcheevos_client_change_media_callback, NULL);
}
}
#else /* !HAVE_RC_CLIENT */