mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-16 09:19:23 +01:00
AchievementManager: Tidy up GetRichPresence()
This can be a direct return.
This commit is contained in:
parent
c14414a151
commit
db80abbadd
@ -862,11 +862,10 @@ AchievementManager::GetLeaderboardsInfo() const
|
|||||||
return m_leaderboard_map;
|
return m_leaderboard_map;
|
||||||
}
|
}
|
||||||
|
|
||||||
AchievementManager::RichPresence AchievementManager::GetRichPresence()
|
AchievementManager::RichPresence AchievementManager::GetRichPresence() const
|
||||||
{
|
{
|
||||||
std::lock_guard lg{m_lock};
|
std::lock_guard lg{m_lock};
|
||||||
RichPresence rich_presence = m_rich_presence;
|
return m_rich_presence;
|
||||||
return rich_presence;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AchievementManager::SetDisabled(bool disable)
|
void AchievementManager::SetDisabled(bool disable)
|
||||||
|
@ -143,7 +143,7 @@ public:
|
|||||||
AchievementManager::ResponseType GetAchievementProgress(AchievementId achievement_id, u32* value,
|
AchievementManager::ResponseType GetAchievementProgress(AchievementId achievement_id, u32* value,
|
||||||
u32* target);
|
u32* target);
|
||||||
const std::unordered_map<AchievementId, LeaderboardStatus>& GetLeaderboardsInfo() const;
|
const std::unordered_map<AchievementId, LeaderboardStatus>& GetLeaderboardsInfo() const;
|
||||||
RichPresence GetRichPresence();
|
RichPresence GetRichPresence() const;
|
||||||
bool IsDisabled() const { return m_disabled; };
|
bool IsDisabled() const { return m_disabled; };
|
||||||
void SetDisabled(bool disabled);
|
void SetDisabled(bool disabled);
|
||||||
const NamedIconMap& GetChallengeIcons() const;
|
const NamedIconMap& GetChallengeIcons() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user