Merge pull request #571 from ggrtk/discord

CommonHostInterface: Use largeImage fields in Discord presence payload
This commit is contained in:
Connor McLaughlin 2020-06-27 15:55:30 +10:00 committed by GitHub
commit f690165b52
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;