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

Closed
github-bot wants to merge 1 commit from gh-pr/1883/head into gh-pr/1883/base
Owner

@⁠kurrutako on GitHub · 2026-11-25 14:14 UTC · original
kurrutako:docs/first-run-ui-usage → main · +2 −2 · 2 files · 1 commits · closed without merging

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

**@⁠kurrutako** on GitHub · 2026-11-25 14:14 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1883) `kurrutako:docs/first-run-ui-usage` → `main` · +2 −2 · 2 files · 1 commits · closed without merging 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)
--first-run-ui is parsed by the same loop as --run and becomes a run, so it
already takes --mods, --archetype-lookup, --view-mode-getter, --trace-d3d12
and game arguments after --. The usage line showed only --game-dir,
--overlay and --trace, which reads as if --trace-d3d12 (the input of
tools/boot_trace.py --d3d12) were not available in this mode.
docs/first_run_ui.md says the same. No behaviour change.

AI-assisted.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:09:51 +00:00
github-bot closed this pull request 2026-11-26 10:09:51 +00:00
Author
Owner

@⁠kurrutako on GitHub · 2026-11-25 20:30 UTC · original

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).

**@⁠kurrutako** on GitHub · 2026-11-25 20:30 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1883#issuecomment-7173763847) 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).

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.