mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Clear active challenges when game closes
Failing to do this was causing challenge icons to carry over into the next game if a game was closed while the icons were active, even if the next game to run was a completely different game entirely with completely different badges.
This commit is contained in:
parent
5090a028e6
commit
56b82e764c
1 changed files with 1 additions and 0 deletions
|
@ -908,6 +908,7 @@ void AchievementManager::CloseGame()
|
||||||
if (m_is_game_loaded)
|
if (m_is_game_loaded)
|
||||||
{
|
{
|
||||||
m_is_game_loaded = false;
|
m_is_game_loaded = false;
|
||||||
|
m_active_challenges.clear();
|
||||||
ActivateDeactivateAchievements();
|
ActivateDeactivateAchievements();
|
||||||
ActivateDeactivateLeaderboards();
|
ActivateDeactivateLeaderboards();
|
||||||
ActivateDeactivateRichPresence();
|
ActivateDeactivateRichPresence();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue