Keep co-op's private settings out of the log and out of bug reports.

This line logs every setting nx2navi.ini sets, and a bug report takes a copy of nx2navi.ini along: with co-op both would have carried a room's secret, the relay's address and the player's name to whoever reads the report, and the secret lets anyone into the room. One list (runtime/cfg_private.h: the room's secret, the offer number, the relay, the name, the key a maker removes, the menu's test hook) now serves the log's line, "Copy system info" and the report's copy of the file, in the game and in the launcher: such a key reads "(set, not shown)", every other byte of the file stays.

Also: the last leftovers of the restorations that were left out with the puppets (their settings prefix and section), main.c's byte order mark as it was, and two comments that cited files this tree does not have.

Checked: with a room, a relay and a name in nx2navi.ini the log's line shows all three as set and none of their values; the same text gives the same bytes through the game's scrub and the launcher's (a launcher test, and the C function built alone); the launcher tests, the co-op probe, the relay tests and the tab check pass.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
chrg6
2026-11-11 00:20:22 -05:00
parent 7e07e13bac
commit ba9d6bac06
10 changed files with 151 additions and 27 deletions

View File

@@ -714,15 +714,8 @@
# Default: every cheat off.
# cheat_0123abcd = 1
[restorations]
# Things the original game did that this release changed, each switched on (1) or off (0) on its own, also on the
# Restorations tab of the menu (F1). Read at start: once, as the game starts, it edits its own files on this PC for the
# ones switched on and logs each edit, or why it skipped one (a mod or another game version changed what it edits),
# so a change takes effect at the next start. docs/restorations.md.
# Default: every one off.
[diagnostics]
# Extra lines in the log, comma separated: svc, host, ipc, fs, gfx, perf, sched, audio, present or all. The menu's
# Extra lines in the log, comma separated: svc, host, ipc, fs, gfx, perf, sched, audio, present, coop or all. The menu's
# Performance log sets perf (frame timings). Default: none.
# trace = perf
# 1: with trace = perf, walks of the process's address space count its private and write-combined memory every 600