mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 07:49:19 +01:00
Merge pull request #12229 from AdmiralCurtiss/achievement-load-async-lock
AchievementManager: Call ActivateDeactivateLeaderboards() and ActivateDeactivateRichPresence() under lock.
This commit is contained in:
commit
daf9ff012a
@ -191,6 +191,8 @@ void AchievementManager::LoadGameByFilenameAsync(const std::string& iso_path,
|
|||||||
m_is_game_loaded = true;
|
m_is_game_loaded = true;
|
||||||
LoadUnlockData([](ResponseType r_type) {});
|
LoadUnlockData([](ResponseType r_type) {});
|
||||||
ActivateDeactivateAchievements();
|
ActivateDeactivateAchievements();
|
||||||
|
ActivateDeactivateLeaderboards();
|
||||||
|
ActivateDeactivateRichPresence();
|
||||||
PointSpread spread = TallyScore();
|
PointSpread spread = TallyScore();
|
||||||
if (hardcore_mode_enabled)
|
if (hardcore_mode_enabled)
|
||||||
{
|
{
|
||||||
@ -209,8 +211,6 @@ void AchievementManager::LoadGameByFilenameAsync(const std::string& iso_path,
|
|||||||
OSD::AddMessage("Hardcore mode is OFF", OSD::Duration::VERY_LONG, OSD::Color::CYAN);
|
OSD::AddMessage("Hardcore mode is OFF", OSD::Duration::VERY_LONG, OSD::Color::CYAN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ActivateDeactivateLeaderboards();
|
|
||||||
ActivateDeactivateRichPresence();
|
|
||||||
FetchBadges();
|
FetchBadges();
|
||||||
// Reset this to zero so that RP immediately triggers on the first frame
|
// Reset this to zero so that RP immediately triggers on the first frame
|
||||||
m_last_ping_time = 0;
|
m_last_ping_time = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user