From 1a45ee30184327a01757008f82ca05d910f0cc2b Mon Sep 17 00:00:00 2001 From: Albert Liu <45282415+ggrtk@users.noreply.github.com> Date: Fri, 26 Jun 2020 22:28:48 -0700 Subject: [PATCH] CommonHostInterface: Use largeImage fields in Discord presence payload Fixes application icon not showing up in Discord Rich Presence. --- src/frontend-common/common_host_interface.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend-common/common_host_interface.cpp b/src/frontend-common/common_host_interface.cpp index 8c5dcb305..0204ec975 100644 --- a/src/frontend-common/common_host_interface.cpp +++ b/src/frontend-common/common_host_interface.cpp @@ -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;