From 8237606d5a38b5004739b63a727ed47a6804fcc3 Mon Sep 17 00:00:00 2001 From: illusion98 <37698908+illusion98@users.noreply.github.com> Date: Sun, 25 Aug 2019 00:15:51 -0500 Subject: [PATCH] [Discord] Add Time Elasped and Description Text Display Time Elapsed when idle or playing a game Display description when hovering over the icon --- src/xenia/app/discord/discord_presence.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenia/app/discord/discord_presence.cc b/src/xenia/app/discord/discord_presence.cc index 50acd272f..97cb9f2ba 100644 --- a/src/xenia/app/discord/discord_presence.cc +++ b/src/xenia/app/discord/discord_presence.cc @@ -8,6 +8,7 @@ */ #include "discord_presence.h" +#include #include "third_party/discord-rpc/include/discord_rpc.h" #include "xenia/base/string.h" @@ -35,6 +36,8 @@ void DiscordPresence::NotPlaying() { discordPresence.state = "Idle"; discordPresence.details = "Standby"; discordPresence.largeImageKey = "app"; + discordPresence.largeImageText = "Xenia - Experimental Xbox 360 Emulator"; + discordPresence.startTimestamp = time(0); discordPresence.instance = 1; Discord_UpdatePresence(&discordPresence); } @@ -48,6 +51,8 @@ void DiscordPresence::PlayingTitle(const std::wstring& game_title) { // discordPresence.smallImageKey = "app"; // discordPresence.largeImageKey = "state_ingame"; discordPresence.largeImageKey = "app"; + discordPresence.largeImageText = "Xenia - Experimental Xbox 360 Emulator"; + discordPresence.startTimestamp = time(0); discordPresence.instance = 1; Discord_UpdatePresence(&discordPresence); }