Repository navigation
Conversation
…RT-VALUE-OPTION) --trace, --game-dir, --overlay and --mods take a path, so another option where the value belongs is the usage error and exit 2. Before, `--dry-run image.exe --trace --trace-d3d12` wrote the startup trace to a file literally named --trace-d3d12 and exited 0 with the D3D12 trace off: a mistyped command line read as a clean run. The ctest runs the binary on both shapes and on a real --trace FILE value.
Grimkaaah
left a comment
There was a problem hiding this comment.
Independent Linux CPU review (b9afc300)
What changed: gta6rt treats a following option as a missing value, not a value; CMake check + README.
Checked: Diff review (runtime not built here). Focused option-parser guard.
Looks coherent; no game files.
|
Tested Configured
Code read: the AI-assisted (Claude Code). Synthetic tests only, no game files. |
|
Verified head
AI-assisted. |
|
Reviewed Looks good overall — no blocking issues found.
Two small non-blocking notes:
AI-assisted. |
|
Tested
It conflicts with #8729 (the Edited: the first version of this comment said the two PRs touch the same lines of |
|
Reviewed b9afc30, code read only (not built, no MSVC or GPU here), AI-assisted: LGTM. |
Claimed in the coordination issue as: EGEN-GTA6RT-VALUE-OPTION (claim)
What and why
--trace,--game-dir,--overlayand--modstake a path. The parser only checked that some argument followed, so thenext option became the value:
gta6rt --dry-run image.exe --trace --trace-d3d12wrote the startup trace into a fileliterally named
--trace-d3d12, left the D3D12 trace off, and exited 0. A mistyped command line read as a clean run withthe trace missing, which is the opposite of what a first-boot triage of the executable needs.
A value that starts with
--(and a value missing at the end of the line) is nowusage: gta6rtand exit 2, beforeanything is mapped. The same option with a real path is unchanged.
Tested
Windows 11, MSVC 2022
RelWithDebInfo,cmake -S runtime -B <build>thencmake --build <build> --target gta6rt, base867d922f0; no GPU, no game copy (the new check stops at the usage error, before the image is opened).gta6rt_option_valuesctest (runtime/test/check_option_value.cmake), same binary path before and after:--trace --trace-d3d12,--game-dir --trace,--overlay --modsand--mods --overlayeach returned 1 aftertrying to map the stand-in image, and a file named
--trace-d3d12appeared — the test is red.usage: gta6rt,--trace FILEstill creates that file and the run goes on to theimage (exit 1), and no file named
--trace-d3d12is written — the test is green.gta6rt --dry-run <image> --trace --trace-d3d12now prints the usage and exits 2 (was exit 0with the trace off).
ctest -R "gta6rt_option_values|gta6rt_rejects|run_tiny_game|run_startup_cmdline|startup_trace|run_tiny_atexit|run_tiny_async|run_tiny_gdk_load|run_tiny_bundled_load|run_argv_modes"on that build: 21/21 pass.
Next stop: this moves the command line, not the boot, so the first remaining stop of
--runis unchanged (the retailchain in
docs/retail_boot_chain.md, the descriptor-heap handle assert after the firstCreateDescriptorHeap).AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed. (Not a translator change.)Tag: SHAYDERRR