mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Extend CoopNet/Discord mod list description length
This commit is contained in:
parent
036e5ad53c
commit
821852ec9a
3 changed files with 4 additions and 4 deletions
|
|
@ -169,9 +169,9 @@ unsigned int configMenuLevel = 0;
|
||||||
bool configMenuSound = false;
|
bool configMenuSound = false;
|
||||||
bool configMenuRandom = false;
|
bool configMenuRandom = false;
|
||||||
bool configMenuDemos = false;
|
bool configMenuDemos = false;
|
||||||
bool configDynosLocalPlayerModelOnly = false;
|
|
||||||
bool configDisablePopups = false;
|
bool configDisablePopups = false;
|
||||||
char configLanguage[MAX_CONFIG_STRING] = "";
|
char configLanguage[MAX_CONFIG_STRING] = "";
|
||||||
|
bool configDynosLocalPlayerModelOnly = false;
|
||||||
// CoopNet settings
|
// CoopNet settings
|
||||||
char configCoopNetIp[MAX_CONFIG_STRING] = DEFAULT_COOPNET_IP;
|
char configCoopNetIp[MAX_CONFIG_STRING] = DEFAULT_COOPNET_IP;
|
||||||
unsigned int configCoopNetPort = DEFAULT_COOPNET_PORT;
|
unsigned int configCoopNetPort = DEFAULT_COOPNET_PORT;
|
||||||
|
|
|
||||||
|
|
@ -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
|
// 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 };
|
char details[512] = { 0 };
|
||||||
discord_populate_details(details, 256);
|
discord_populate_details(details, 512);
|
||||||
|
|
||||||
snprintf(sCurActivity.details, 128, "%s", details);
|
snprintf(sCurActivity.details, 128, "%s", details);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ bool ns_coopnet_is_connected(void) {
|
||||||
|
|
||||||
static void coopnet_populate_description(void) {
|
static void coopnet_populate_description(void) {
|
||||||
char* buffer = sCoopNetDescription;
|
char* buffer = sCoopNetDescription;
|
||||||
int bufferLength = 512;
|
int bufferLength = 1024;
|
||||||
// get version
|
// get version
|
||||||
const char* version = get_version_online();
|
const char* version = get_version_online();
|
||||||
int versionLength = strlen(version);
|
int versionLength = strlen(version);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue