mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-17 23:45:46 -04:00
CommonHostInterface: Use largeImage fields in Discord presence payload
Fixes application icon not showing up in Discord Rich Presence.
This commit is contained in:
@ -2002,9 +2002,10 @@ void CommonHostInterface::UpdateDiscordPresence()
|
|||||||
if (!m_discord_presence_active)
|
if (!m_discord_presence_active)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
// https://discord.com/developers/docs/rich-presence/how-to#updating-presence-update-presence-payload-fields
|
||||||
DiscordRichPresence rp = {};
|
DiscordRichPresence rp = {};
|
||||||
rp.smallImageKey = "duckstation_logo";
|
rp.largeImageKey = "duckstation_logo";
|
||||||
rp.smallImageText = "DuckStation PS1/PSX Emulator";
|
rp.largeImageText = "DuckStation PS1/PSX Emulator";
|
||||||
rp.startTimestamp = std::time(nullptr);
|
rp.startTimestamp = std::time(nullptr);
|
||||||
|
|
||||||
SmallString details_string;
|
SmallString details_string;
|
||||||
|
Reference in New Issue
Block a user