mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 12:50:44 +00:00
Disable DRPC if dedicated
This commit is contained in:
parent
85726d7a55
commit
fbfc305e47
2 changed files with 13 additions and 2 deletions
10
src/d_main.c
10
src/d_main.c
|
@ -732,7 +732,10 @@ void D_SRB2Loop(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_DISCORDRPC
|
#ifdef HAVE_DISCORDRPC
|
||||||
Discord_RunCallbacks();
|
if (! dedicated)
|
||||||
|
{
|
||||||
|
Discord_RunCallbacks();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1600,7 +1603,10 @@ void D_SRB2Main(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_DISCORDRPC
|
#ifdef HAVE_DISCORDRPC
|
||||||
DRPC_Init();
|
if (! dedicated)
|
||||||
|
{
|
||||||
|
DRPC_Init();
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -482,6 +482,11 @@ void DRPC_UpdatePresence(void)
|
||||||
DiscordRichPresence discordPresence;
|
DiscordRichPresence discordPresence;
|
||||||
memset(&discordPresence, 0, sizeof(discordPresence));
|
memset(&discordPresence, 0, sizeof(discordPresence));
|
||||||
|
|
||||||
|
if (dedicated)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (!cv_discordrp.value)
|
if (!cv_discordrp.value)
|
||||||
{
|
{
|
||||||
// User doesn't want to show their game information, so update with empty presence.
|
// User doesn't want to show their game information, so update with empty presence.
|
||||||
|
|
Loading…
Reference in a new issue