From 821852ec9adef56f72284de8c3122dfd68aa2fe9 Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Mon, 8 Jul 2024 19:42:03 -0400 Subject: [PATCH] Extend CoopNet/Discord mod list description length --- src/pc/configfile.c | 2 +- src/pc/discord/discord_activity.c | 4 ++-- src/pc/network/coopnet/coopnet.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pc/configfile.c b/src/pc/configfile.c index e68b1b32..e8a8c88d 100644 --- a/src/pc/configfile.c +++ b/src/pc/configfile.c @@ -169,9 +169,9 @@ unsigned int configMenuLevel = 0; bool configMenuSound = false; bool configMenuRandom = false; bool configMenuDemos = false; -bool configDynosLocalPlayerModelOnly = false; bool configDisablePopups = false; char configLanguage[MAX_CONFIG_STRING] = ""; +bool configDynosLocalPlayerModelOnly = false; // CoopNet settings char configCoopNetIp[MAX_CONFIG_STRING] = DEFAULT_COOPNET_IP; unsigned int configCoopNetPort = DEFAULT_COOPNET_PORT; diff --git a/src/pc/discord/discord_activity.c b/src/pc/discord/discord_activity.c index 44f2bc90..30404447 100644 --- a/src/pc/discord/discord_activity.c +++ b/src/pc/discord/discord_activity.c @@ -121,8 +121,8 @@ void discord_activity_update(void) { } // HACK: give the detail population more space than the Discord details can fit so it gets truncated without cutting off the largest strings - char details[256] = { 0 }; - discord_populate_details(details, 256); + char details[512] = { 0 }; + discord_populate_details(details, 512); snprintf(sCurActivity.details, 128, "%s", details); diff --git a/src/pc/network/coopnet/coopnet.c b/src/pc/network/coopnet/coopnet.c index 2ec98d5f..03902940 100644 --- a/src/pc/network/coopnet/coopnet.c +++ b/src/pc/network/coopnet/coopnet.c @@ -176,7 +176,7 @@ bool ns_coopnet_is_connected(void) { static void coopnet_populate_description(void) { char* buffer = sCoopNetDescription; - int bufferLength = 512; + int bufferLength = 1024; // get version const char* version = get_version_online(); int versionLength = strlen(version);