Merge pull request #12859 from LillyJadeKatrin/retroachievements-challenge-hide

Hide Challenge Icons when OSD Messages Disabled
This commit is contained in:
JMC47 2024-06-19 02:29:08 -04:00 committed by GitHub
commit 9886199cb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

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
auto& instance = AchievementManager::GetInstance(); auto& instance = AchievementManager::GetInstance();
std::lock_guard lg{instance.GetLock()}; std::lock_guard lg{instance.GetLock()};