mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-28 04:00:41 +00:00
Merge branch 'advertisement-for-rpc' into 'master'
Move master server presence updates to Advertise_OnChange See merge request KartKrew/Kart-Public!227
This commit is contained in:
commit
85726d7a55
1 changed files with 4 additions and 8 deletions
12
src/mserv.c
12
src/mserv.c
|
@ -251,10 +251,6 @@ Finish_update (void)
|
||||||
|
|
||||||
if (! done)
|
if (! done)
|
||||||
Finish_update();
|
Finish_update();
|
||||||
#ifdef HAVE_DISCORDRPC
|
|
||||||
else
|
|
||||||
DRPC_UpdatePresence();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -288,10 +284,6 @@ Finish_unlist (void)
|
||||||
I_wake_all_cond(&MSCond);
|
I_wake_all_cond(&MSCond);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_DISCORDRPC
|
|
||||||
DRPC_UpdatePresence();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
|
@ -564,4 +556,8 @@ Advertise_OnChange(void)
|
||||||
{
|
{
|
||||||
UnregisterServer();
|
UnregisterServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_DISCORDRPC
|
||||||
|
DRPC_UpdatePresence();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue