Extend CoopNet/Discord mod list description length

This commit is contained in:
Agent X 2024-07-08 19:42:03 -04:00
parent 036e5ad53c
commit 821852ec9a
3 changed files with 4 additions and 4 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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);