From 4b712a83e4923d0675e43674bee9dd9e654a02ce Mon Sep 17 00:00:00 2001 From: Valiantsin Dzerakh Date: Wed, 4 Nov 2026 10:58:35 +0300 Subject: [PATCH] Log the port and game version at the top of totk.log Two reports today attached a log from another build than the one they were about: #659 a 0.3.4 log for a 0.3.7 regression, #683 a pre-0.1.6 log from a folder named after the 0.3.7 setup. Telling that needed matching log strings against release tags. The line follows mem_init, the first point where rt_log may run, so it is the second line of the file after "cfg: read". Co-Authored-By: Claude Opus 5.5 --- runtime/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/main.c b/runtime/main.c index 01b1ffda..c23fc49c 100644 --- a/runtime/main.c +++ b/runtime/main.c @@ -503,6 +503,9 @@ static void portable_paths(RtConfig *c) { int main(int argc, char **argv) { mem_init(); // first: claim the guest address space before anything else can land there; reads totk.ini + // The build that wrote the log, at its top: an attached log from another install or version shows at a glance. + rt_log("version: TotK Recomp %s, game %d.%d.%d", rt_port_version, rt_game_version / 100, rt_game_version / 10 % 10, + rt_game_version % 10); // A restart from the settings menu (gfx_present.c gfx_window_closed) starts this process while the one it replaces // is still exiting: its log, RomFS and saves are free once it is gone. if (plat_restart_wait(30000) < 0) rt_log("restart: the previous process still runs after 30 s; starting anyway");