Disable DRPC if dedicated

This commit is contained in:
James R 2020-09-15 19:56:08 -07:00
parent 85726d7a55
commit fbfc305e47
2 changed files with 13 additions and 2 deletions

View file

@ -732,7 +732,10 @@ void D_SRB2Loop(void)
#endif
#ifdef HAVE_DISCORDRPC
if (! dedicated)
{
Discord_RunCallbacks();
}
#endif
}
}
@ -1600,7 +1603,10 @@ void D_SRB2Main(void)
}
#ifdef HAVE_DISCORDRPC
if (! dedicated)
{
DRPC_Init();
}
#endif
}

View file

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