Hide Challenge Icons when OSD Messages Disabled

This commit is contained in:
LillyJadeKatrin 2024-06-14 00:19:45 -04:00
parent b0f8520a3d
commit 7eec723f3f

View File

@ -333,6 +333,8 @@ void OnScreenUI::DrawDebugText()
void OnScreenUI::DrawChallengesAndLeaderboards() void OnScreenUI::DrawChallengesAndLeaderboards()
{ {
if (!Config::Get(Config::MAIN_OSD_MESSAGES))
return;
#ifdef USE_RETRO_ACHIEVEMENTS #ifdef USE_RETRO_ACHIEVEMENTS
std::lock_guard lg{AchievementManager::GetInstance().GetLock()}; std::lock_guard lg{AchievementManager::GetInstance().GetLock()};
const auto& challenge_icons = AchievementManager::GetInstance().GetChallengeIcons(); const auto& challenge_icons = AchievementManager::GetInstance().GetChallengeIcons();