validate hashes for secondary discs in multi-disc games (#13283)

This commit is contained in:
Jamiras 2021-11-24 23:15:37 -07:00 committed by GitHub
parent 339feab15b
commit 99a1ffdb89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 259 additions and 39 deletions

View file

@ -30,6 +30,10 @@
#include "disk_control_interface.h"
#ifdef HAVE_CHEEVOS
#include "cheevos/cheevos.h"
#endif
/*****************/
/* Configuration */
/*****************/
@ -325,6 +329,11 @@ bool disk_control_set_eject_state(
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
}
#ifdef HAVE_CHEEVOS
if (!error && !eject)
rcheevos_change_disc(disk_control->index_record.image_path, false);
#endif
return !error;
}
@ -773,6 +782,11 @@ bool disk_control_verify_initial_index(
0, msg_duration,
false, NULL,
MESSAGE_QUEUE_ICON_DEFAULT, MESSAGE_QUEUE_CATEGORY_INFO);
#ifdef HAVE_CHEEVOS
if (image_index > 0)
rcheevos_change_disc(disk_control->index_record.image_path, true);
#endif
}
return success;