From 0d3b0e2e0e261b7638fd2f590acd11d805ba3c50 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Tue, 29 Apr 2025 19:47:26 -0400 Subject: [PATCH] Show TA mode in discord RPC --- src/discord.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/discord.c b/src/discord.c index c52a8ba54..17ae05e1f 100644 --- a/src/discord.c +++ b/src/discord.c @@ -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",