Merge dev into task/discord

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Valiantsin DzerakhandClaude Opus 5.5 committed 2026-11-03 20:11:51 +03:00
commit 69e7bef868
13 files changed
+188 -38

No files matched your search

+4
View File
@@ -547,6 +547,10 @@ int main(int argc, char **argv) {
if (cfg.seconds && mode) return usage(argv[0]);
log_open(!mode);
if (!mode) {
// A game launched by a frontend or a shortcut gets a console of its own that only gets in the way. The log is in
// a file by now; with no log file, or with show_console = 1, the console stays.
if (rt_log_path() && !cfg_bool("TOTK_SHOW_CONSOLE") && plat_console_release_if_owned())
rt_log("console: owned by the game alone, released (show_console = 1 keeps it)");
cfg.boot = cfg.seconds > 0; // --seconds starts the game like --boot, with its checkpoints
discord_init(); // the Rich Presence thread (discord_rpc.c); it reads totk.ini itself and idles while off
rt_boot();