mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-27 08:05:41 +00:00
Merge pull request #571 from ggrtk/discord
CommonHostInterface: Use largeImage fields in Discord presence payload
This commit is contained in:
commit
f690165b52
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue