this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

export help fix

nesbox 551cf2d1 4870cc90

+7 -5
+7 -5
src/studio/screens/console.c
··· 272 272 273 273 strcat(langnames, ln->name); 274 274 if (!isLast) 275 - strcat(langnames, ", "); 276 - if (isSecondToLast) 277 - strcat(langnames, "or "); 275 + strcat(langnames, isSecondToLast ? " or " : ", "); 278 276 279 277 strcat(langextensions, ln->fileExtension); 280 278 strcat(langextensions, " "); ··· 283 281 if (!isLast) 284 282 strcat(langnamespipe, "|"); 285 283 FOR_EACH_LANG_END 286 - 287 284 288 285 char* replaced1 = str_replace(text, "$LANG_NAMES$", langnames); 289 286 char* replaced2 = str_replace(replaced1, "$LANG_EXTENSIONS$", langextensions); ··· 3241 3238 3242 3239 ptr += sprintf(ptr, "```\n\n%s\n\n%s", TermsText, LicenseText); 3243 3240 3244 - onFileExported(console, filename, tic_fs_save(console->fs, filename, buf, strlen(buf), true)); 3241 + char* helpReplaced = replaceHelpTokens(buf); 3242 + 3243 + SCOPE(free(helpReplaced)) 3244 + { 3245 + onFileExported(console, filename, tic_fs_save(console->fs, filename, helpReplaced, strlen(helpReplaced), true)); 3246 + } 3245 3247 } 3246 3248 } 3247 3249