mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 22:19:57 -04:00
cfg.c keeps at most CFG_MAX_KEYS (512) keys. add, cfg_set, cfg_reset and migrate stopped silently at the cap, so a file with more keys (every cheat ever switched keeps a cheat_<hash> line, unknown keys count too) had its later keys ignored and a later menu change lost, with nothing in the log (the audit's probe: low_latency after 600 cheat lines read as unset, a cfg_set of vk_present lost, 0 log lines). Only a file far past what players have reaches it. A line now says so: at load once per load, naming the first key and line not read, and once a run for the changes cfg_set, cfg_reset and migrate could not keep. Raising the cap would change which keys take effect and is left for approval. Not reproduced before the change by a game run; tests/cfg_parse_check.py gains the case: a file of 600 cheat keys and then low_latency gives one line at load from line 513 on, and two cfg_set past the full table one line. The cfg rows checks and the compile checks pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
3.0 KiB
3.0 KiB