Commit ccf65844 by Sal

Merge branch 'disable-rpc-in-dedicated' into 'master'

Disable Discord Rich Presence on dedicated servers See merge request !229
parents 85726d7a fbfc305e
......@@ -732,7 +732,10 @@ void D_SRB2Loop(void)
#endif
#ifdef HAVE_DISCORDRPC
Discord_RunCallbacks();
if (! dedicated)
{
Discord_RunCallbacks();
}
#endif
}
}
......@@ -1600,7 +1603,10 @@ void D_SRB2Main(void)
}
#ifdef HAVE_DISCORDRPC
DRPC_Init();
if (! dedicated)
{
DRPC_Init();
}
#endif
}
......
......@@ -482,6 +482,11 @@ void DRPC_UpdatePresence(void)
DiscordRichPresence discordPresence;
memset(&discordPresence, 0, sizeof(discordPresence));
if (dedicated)
{
return;
}
if (!cv_discordrp.value)
{
// User doesn't want to show their game information, so update with empty presence.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment