From c0333ea7c6f5d1f31e97cccff4c1b249c42e0f62 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] 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 bee8c78bf..109d09dd7 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::string_view 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); }