Disabled Hardcore Mode when Achievements disabled

Bugfix for hardcore-disabled items being disabled when hardcore was true but achievement integration was false, which should mean hardcore is effectively disabled. Now everything checks the IsHardcoreModeActive method in AchievementManager which processes the setting AND the game state to determine if hardcore mode is actually active.
This commit is contained in:
LillyJadeKatrin
2024-05-01 23:47:23 -04:00
parent b71fdef356
commit ad969dfc0d
11 changed files with 27 additions and 23 deletions

View File

@ -10,7 +10,7 @@
#include <QPushButton>
#include <QStyle>
#include "Core/Config/AchievementSettings.h"
#include "Core/AchievementManager.h"
#include "Core/ConfigManager.h"
#include "Core/Core.h"
@ -57,6 +57,6 @@ void HardcoreWarningWidget::ConnectWidgets()
void HardcoreWarningWidget::Update()
{
setHidden(!Config::Get(Config::RA_HARDCORE_ENABLED));
setHidden(!AchievementManager::GetInstance().IsHardcoreModeActive());
}
#endif // USE_RETRO_ACHIEVEMENTS