Show Grandprix in RPC
This commit is contained in:
parent
1fba237ef2
commit
3ece20fb67
1 changed files with 11 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue