From b0d7eab7496ef0149e9cb55520ad9d1aac850954 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Wed, 30 Apr 2025 19:04:11 -0400 Subject: [PATCH] Use GP difficulty in RPC --- src/discord.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/discord.c b/src/discord.c index 774c0e5f1..bbd87cdd7 100644 --- a/src/discord.c +++ b/src/discord.c @@ -577,11 +577,22 @@ void DRPC_UpdatePresence(void) } else { - snprintf(detailstr, 48, "%s%s%s", - gametype_cons_t[gametype].strvalue, - va(" | %s", kartspeed_cons_t[gamespeed+1].strvalue), - (encoremode == true) ? " | Encore" : "" - ); + if (grandprixinfo.gp == true) + { + snprintf(detailstr, 48, "%s%s%s", + gametype_cons_t[gametype].strvalue, + va(" | %s", cv_dummygpdifficulty.string), + (encoremode == true) ? " | Encore" : "" + ); + } + else + { + snprintf(detailstr, 48, "%s%s%s", + gametype_cons_t[gametype].strvalue, + va(" | %s", kartspeed_cons_t[gamespeed+1].strvalue), + (encoremode == true) ? " | Encore" : "" + ); + } discordPresence.details = detailstr; } }