Skip to content

Commit

Permalink
Use "rc_client_is_processing_required" to determine when hardcore res…
Browse files Browse the repository at this point in the history
…trictions are to be enabled.
  • Loading branch information
hrydgard committed Dec 3, 2023
1 parent aed8bc6 commit eae5f2a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/RetroAchievements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit eae5f2a

Please sign in to comment.