mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-13 04:52:06 +00:00
Merge pull request #12389 from lioncash/cheeve
AchievementManager: Make GetInstance() and GetLock() return a reference
This commit is contained in:
commit
54301d709a
22 changed files with 87 additions and 117 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue