Show TA mode in discord RPC

This commit is contained in:
NepDisk 2025-04-29 19:47:26 -04:00
parent c5d7fc4a36
commit 0d3b0e2e0e

View file

@ -551,7 +551,19 @@ void DRPC_UpdatePresence(void)
if ((gamestate == GS_LEVEL || gamestate == GS_INTERMISSION || gamestate == GS_VOTING) && Playing()) if ((gamestate == GS_LEVEL || gamestate == GS_INTERMISSION || gamestate == GS_VOTING) && Playing())
{ {
if (modeattacking) 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 else
{ {
snprintf(detailstr, 48, "%s%s%s", snprintf(detailstr, 48, "%s%s%s",