runtime: the --first-run-ui usage line lists the options the mode takes (DOC-FIRST-RUN-UI-USAGE) #1883

Closed
leonida/mandy
kurrutako wants to merge 0 commits from docs/first-run-ui-usage into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

kurrutako commented 2026-11-25 14:14:46 +00:00

DOC-FIRST-RUN-UI-USAGE, claimed in #1608.

What

gta6rt's usage line for --first-run-ui now lists the options the mode already takes: --mods, --archetype-lookup, --view-mode-getter, --trace-d3d12 and game arguments after --, the same set as --run. docs/first_run_ui.md says so in one sentence and points --trace-d3d12 at tools/boot_trace.py --d3d12.

Why

--first-run-ui is parsed by the same loop as --run (runtime/src/main.cpp, wmain) and becomes a run (run = run || first_run_ui), so every --run option applies. The usage line showed only --game-dir, --overlay and --trace, which reads as if the D3D12 trace were not available in this mode. On my RTX 5070 boots (#1537) I left it out for that reason, and boot_trace.py --d3d12 then had no input.

Checked

With the runtime built from main 71a769d7d (MSVC 2022, RelWithDebInfo), on Windows 11:

  • gta6rt --first-run-ui nope.exe --bogus prints the usage text (unknown option, as before).
  • gta6rt --first-run-ui nope.exe --trace-d3d12 --mods m --overlay o -- -x passes the parser and stops at error: cannot open ...nope.exe, so all of those options are accepted today.

No behaviour change: only the usage text and the doc. python -I scripts/check_no_game_data.py passes.

AI-assisted.

🤖 Generated with Claude Code

DOC-FIRST-RUN-UI-USAGE, claimed in #1608. ## What `gta6rt`'s usage line for `--first-run-ui` now lists the options the mode already takes: `--mods`, `--archetype-lookup`, `--view-mode-getter`, `--trace-d3d12` and game arguments after `--`, the same set as `--run`. `docs/first_run_ui.md` says so in one sentence and points `--trace-d3d12` at `tools/boot_trace.py --d3d12`. ## Why `--first-run-ui` is parsed by the same loop as `--run` (`runtime/src/main.cpp`, `wmain`) and becomes a run (`run = run || first_run_ui`), so every `--run` option applies. The usage line showed only `--game-dir`, `--overlay` and `--trace`, which reads as if the D3D12 trace were not available in this mode. On my RTX 5070 boots (#1537) I left it out for that reason, and `boot_trace.py --d3d12` then had no input. ## Checked With the runtime built from `main` 71a769d7d (MSVC 2022, RelWithDebInfo), on Windows 11: - `gta6rt --first-run-ui nope.exe --bogus` prints the usage text (unknown option, as before). - `gta6rt --first-run-ui nope.exe --trace-d3d12 --mods m --overlay o -- -x` passes the parser and stops at `error: cannot open ...nope.exe`, so all of those options are accepted today. No behaviour change: only the usage text and the doc. `python -I scripts/check_no_game_data.py` passes. AI-assisted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
kurrutako commented 2026-11-25 20:30:07 +00:00

Closing for now under the new rule of one open PR until two are merged; I will reopen it later. The branch stays on my fork.

AI-assisted (Claude Code, Claude Opus 5.5).

Closing for now under the new rule of one open PR until two are merged; I will reopen it later. The branch stays on my fork. AI-assisted (Claude Code, Claude Opus 5.5).
Sign in to join this conversation.
No description provided.