VMManager: Fix cheats warning showing with per-game HC mode

This commit is contained in:
Stenzek 2023-06-29 23:14:13 +10:00 committed by refractionpcsx2
parent 987bebffc7
commit 64ed6f5572
1 changed files with 3 additions and 0 deletions

View File

@ -2210,7 +2210,10 @@ void VMManager::ReloadPatches(bool reload_files, bool reload_enabled_list, bool
void VMManager::EnforceAchievementsChallengeModeSettings()
{
if (!Achievements::ChallengeModeActive())
{
Host::RemoveKeyedOSDMessage("ChallengeDisableCheats");
return;
}
static constexpr auto ClampSpeed = [](float& rate) {
if (rate > 0.0f && rate < 1.0f)