System: Load discord-rpc dynamically

This commit is contained in:
Stenzek
2024-07-04 14:40:16 +10:00
parent 00d2d862c2
commit f6d3a7987d
8 changed files with 87 additions and 32 deletions

View File

@ -801,11 +801,9 @@ void Achievements::UpdateRichPresence(std::unique_lock<std::recursive_mutex>& lo
INFO_LOG("Rich presence updated: {}", s_rich_presence_string);
Host::OnAchievementsRefreshed();
#ifdef ENABLE_DISCORD_PRESENCE
lock.unlock();
System::UpdateDiscordPresence(false);
System::UpdateRichPresence(false);
lock.lock();
#endif
}
void Achievements::GameChanged(const std::string& path, CDImage* image)