Use "rc_client_is_processing_required" to determine when hardcore restrictions are to be enabled.

This commit is contained in:
Henrik Rydgård committed 2023-12-03 16:43:49 +01:00
1 parent aed8bc6d7b
commit eae5f2abb8
1 file changed
+2 -1
+2 -1
View File
@@ -135,7 +135,8 @@ bool HardcoreModeActive() {
if (!g_rcClient) {
return false;
}
return IsLoggedIn() && rc_client_get_hardcore_enabled(g_rcClient) && GetGameID();
// See "Enabling Hardcore" under https://github.com/RetroAchievements/rcheevos/wiki/rc_client-integration.
return IsLoggedIn() && rc_client_get_hardcore_enabled(g_rcClient) && rc_client_is_processing_required(g_rcClient);
}
bool WarnUserIfHardcoreModeActive(bool isSaveStateAction, const char *message) {