CommonHostInterface: Use largeImage fields in Discord presence payload

Fixes application icon not showing up in Discord Rich Presence.
This commit is contained in:
Albert Liu 2020-06-26 22:28:48 -07:00
parent 0b261e836b
commit 1a45ee3018
1 changed files with 3 additions and 2 deletions

View File

@ -2002,9 +2002,10 @@ void CommonHostInterface::UpdateDiscordPresence()
if (!m_discord_presence_active)
return;
// https://discord.com/developers/docs/rich-presence/how-to#updating-presence-update-presence-payload-fields
DiscordRichPresence rp = {};
rp.smallImageKey = "duckstation_logo";
rp.smallImageText = "DuckStation PS1/PSX Emulator";
rp.largeImageKey = "duckstation_logo";
rp.largeImageText = "DuckStation PS1/PSX Emulator";
rp.startTimestamp = std::time(nullptr);
SmallString details_string;