mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
AchievementManager: Make GetInstance() return a reference
The internal static member will always have a valid lifetime. Makes this consistent with other instance based objects in our code.
This commit is contained in:
@ -330,10 +330,9 @@ void OnScreenUI::DrawDebugText()
|
||||
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||
void OnScreenUI::DrawChallenges()
|
||||
{
|
||||
std::lock_guard lg{*AchievementManager::GetInstance()->GetLock()};
|
||||
const AchievementManager::NamedIconMap& challenge_icons =
|
||||
AchievementManager::GetInstance()->GetChallengeIcons();
|
||||
if (challenge_icons.size() == 0)
|
||||
std::lock_guard lg{*AchievementManager::GetInstance().GetLock()};
|
||||
const auto& challenge_icons = AchievementManager::GetInstance().GetChallengeIcons();
|
||||
if (challenge_icons.empty())
|
||||
return;
|
||||
|
||||
const std::string window_name = "Challenges";
|
||||
|
Reference in New Issue
Block a user