From 3ece20fb67700f48c1cda5f80859b029a864f1a2 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Wed, 30 Apr 2025 18:55:30 -0400 Subject: [PATCH] Show Grandprix in RPC --- src/discord.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/discord.c b/src/discord.c index 1bdaf2073..774c0e5f1 100644 --- a/src/discord.c +++ b/src/discord.c @@ -27,6 +27,7 @@ #include "byteptr.h" #include "stun.h" #include "i_tcp.h" // current_port +#include "k_grandprix.h" #include "discord.h" #include "doomdef.h" @@ -541,7 +542,16 @@ void DRPC_UpdatePresence(void) // Offline info if (Playing()) - discordPresence.state = "Offline"; + { + if (grandprixinfo.gp == true) + { + discordPresence.state = "Grand Prix"; + } + else + { + discordPresence.state = "Offline"; + } + } else if (demo.playback && !demo.title) discordPresence.state = "Watching Replay"; else