Show Grandprix in RPC

This commit is contained in:
NepDisk 2025-04-30 18:55:30 -04:00
parent 1fba237ef2
commit 3ece20fb67

View file

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