Show TA mode in discord RPC
This commit is contained in:
parent
c5d7fc4a36
commit
0d3b0e2e0e
1 changed files with 13 additions and 1 deletions
|
|
@ -551,7 +551,19 @@ void DRPC_UpdatePresence(void)
|
|||
if ((gamestate == GS_LEVEL || gamestate == GS_INTERMISSION || gamestate == GS_VOTING) && Playing())
|
||||
{
|
||||
if (modeattacking)
|
||||
discordPresence.details = "Time Attack";
|
||||
{
|
||||
SINT8 recordpreset = G_RecordPresetIndex();
|
||||
char *currenttamode = "SRB2Kart";
|
||||
|
||||
if (recordpreset == RP_TECH)
|
||||
currenttamode = "Tech";
|
||||
else if (recordpreset == RP_BLAN)
|
||||
currenttamode = "BlanKart";
|
||||
else if (recordpreset == RP_CUST)
|
||||
currenttamode = "Custom";
|
||||
|
||||
discordPresence.details = va("Time Attack: %s Mode", currenttamode);
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf(detailstr, 48, "%s%s%s",
|
||||
|
|
|
|||
Loading…
Reference in a new issue