d3d12: say what a failed start or a refused DLSS choice is, instead of leaving it blank #3386

Merged
leonida/mandy
MoonEyes merged 3 commits from fix/launcher-dlss-diagnostics into main 2026-12-03 22:28:00 +00:00

Pull request successfully merged and closed

Member

Four small messages, no behaviour change except the first.

  • run.rs: the package folder of a title started as a bare file name was empty (Path::parent is Some("")), so the missing-DLL report read "not in ,". It is made whole (#2971).
  • run.rs: the crash log's path is printed in the session's output, so a report that keeps only the last lines (#3008, #3147, #2909 and others) says where the crash report and the title's last debug output are.
  • main.rs: the help of leonida.exe says how to play; a wrapper that starts it with no command ends on that help with exit code 2 (#3223, #2838).
  • play-nvidia.ps1: a DLSS choice that cannot run (no NVIDIA files, a build without DLSS) was replaced by the stretch or the title's upscaler without a word; it says why now (#2762, #2885, #3149). The Series X branch is left to #3250.

Tested: cargo test -p leonida --locked --bin leonida (47 passed); tests/test_play_nvidia_menu_choice.py (17 passed). Red/green: the new Python test fails with the script from main (2 of 3 sub-cases); the help test fails without after_help. No rendering code touched. No game files (check_no_game_data.py clean). The launcher files owned by OreoFR are not touched.

AI-assisted: written by Claude Opus 5.5, reviewed read-only by a separate Claude Opus 5.5 judge (accepted; its note on the help text was fixed in 2cca688abd). Related open PRs: #3250, #3006, #3141, #2989.

🤖 Generated with Claude Code

Four small messages, no behaviour change except the first. - `run.rs`: the package folder of a title started as a bare file name was empty (`Path::parent` is `Some("")`), so the missing-DLL report read "not in ,". It is made whole (#2971). - `run.rs`: the crash log's path is printed in the session's output, so a report that keeps only the last lines (#3008, #3147, #2909 and others) says where the crash report and the title's last debug output are. - `main.rs`: the help of `leonida.exe` says how to play; a wrapper that starts it with no command ends on that help with exit code 2 (#3223, #2838). - `play-nvidia.ps1`: a DLSS choice that cannot run (no NVIDIA files, a build without DLSS) was replaced by the stretch or the title's upscaler without a word; it says why now (#2762, #2885, #3149). The Series X branch is left to #3250. **Tested:** `cargo test -p leonida --locked --bin leonida` (47 passed); `tests/test_play_nvidia_menu_choice.py` (17 passed). Red/green: the new Python test fails with the script from main (2 of 3 sub-cases); the help test fails without `after_help`. No rendering code touched. No game files (`check_no_game_data.py` clean). The launcher files owned by OreoFR are not touched. AI-assisted: written by Claude Opus 5.5, reviewed read-only by a separate Claude Opus 5.5 judge (accepted; its note on the help text was fixed in 2cca688abd). Related open PRs: #3250, #3006, #3141, #2989. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- run.rs: a title started as a bare file name had an empty package folder (Path::parent is Some(""), not
  None), so the missing-DLL report read "not in ,". The folder is made whole.
- run.rs: the crash log's path is written in the session's output, so a report that keeps only the last
  lines of a run still says where the crash and the title's last debug output are.
- main.rs: the command-line help says how to play; a launcher that starts leonida.exe with no command ends
  on that help with exit code 2.
- play-nvidia.ps1: a DLSS choice (the F1 menu's saved one) that cannot run (no NVIDIA files, a build
  without DLSS) was replaced by the stretch or the title's upscaler without a word; it now says why.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
clap answers a bare path with an unknown-command error, not this help; only no command ends on it (review of this branch).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Author
Member

Merge check while Forgejo Actions is off: merged locally with main 007fc800ed (which changed play-nvidia.ps1 through #3381/#3382, auto-merged without conflict); tests/test_play_nvidia_menu_choice.py 17 OK and tests/test_play_ps1_args.py OK on the merge result; check_no_game_data.py clean. Main touched no Rust file under d3d12/ since the base, so the earlier cargo test -p leonida --bin leonida (47 passed) still holds. Reviewed by a separate read-only judge (accepted). No rendering code touched.

Merge check while Forgejo Actions is off: merged locally with main `007fc800ed` (which changed `play-nvidia.ps1` through #3381/#3382, auto-merged without conflict); `tests/test_play_nvidia_menu_choice.py` 17 OK and `tests/test_play_ps1_args.py` OK on the merge result; `check_no_game_data.py` clean. Main touched no Rust file under `d3d12/` since the base, so the earlier `cargo test -p leonida --bin leonida` (47 passed) still holds. Reviewed by a separate read-only judge (accepted). No rendering code touched.
Sign in to join this conversation.
No description provided.