Skip to content

Commit

Permalink
don't track disc changes when achievements are disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamiras committed Nov 21, 2023
1 parent 3b27e5b commit 781b5f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cheevos/cheevos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 781b5f8

Please sign in to comment.