mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 12:01:43 +00:00
Strip color codes from discord activity
This commit is contained in:
parent
3e540790a3
commit
05ef720028
1 changed files with 3 additions and 1 deletions
|
|
@ -123,8 +123,10 @@ 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[512] = { 0 };
|
||||
discord_populate_details(details, 512);
|
||||
char* detailsNoColor = str_remove_color_codes(details);
|
||||
|
||||
snprintf(sCurActivity.details, 128, "%s", details);
|
||||
snprintf(sCurActivity.details, 128, "%s", detailsNoColor);
|
||||
free(detailsNoColor);
|
||||
|
||||
if (!app.activities) {
|
||||
LOG_INFO("no activities");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue