Forward the NVIDIA launcher exit code to its caller #3585

Closed
github-bot wants to merge 1 commit from github-bot/gh-3585 into main AGit
Owner

@⁠Yoshi-233 on GitHub · 2026-11-30 01:23 UTC · original
Yoshi-233:fix/nvidia-launcher-exit → main · +2 −1 · 1 files · 1 commits · closed without merging

What it changes

Forward the exit code from play-foxhound.ps1 through the documented play-nvidia.ps1 entry point. A caller using PowerShell's -File could previously receive success after the launcher printed that the game executable was missing.

How it was tested

  • On Linux with PowerShell 7.7, put a placeholder at target/release/victory.exe and passed a nonexistent title path to the real scripts. Both printed the missing-file message. The direct launcher returned 1, the old wrapper returned 0, and the patched wrapper returned 1. The placeholder never ran.
  • Replaced the child script in a temporary directory with a fixture returning 0, 7 or 42. The patched wrapper returned each value and preserved both named arguments, including a path containing a space.
  • This changes one PowerShell entry point. No GPU or Windows PowerShell 5.1 run was involved.

Windows CI stopped in the first Clippy step on the unchanged crash.rs:804 unused-function diagnostic for unwind_copy. The test step did not run. PR check · Same main commit

Checked for overlap

  • Checked open PRs for this script and exit-code fixes. #2486 concerns separate CMD launchers.
**@⁠Yoshi-233** on GitHub · 2026-11-30 01:23 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3585) `Yoshi-233:fix/nvidia-launcher-exit` → `main` · +2 −1 · 1 files · 1 commits · closed without merging ## What it changes Forward the exit code from `play-foxhound.ps1` through the documented `play-nvidia.ps1` entry point. A caller using PowerShell's `-File` could previously receive success after the launcher printed that the game executable was missing. ## How it was tested - On Linux with PowerShell 7.7, put a placeholder at `target/release/victory.exe` and passed a nonexistent title path to the real scripts. Both printed the missing-file message. The direct launcher returned 1, the old wrapper returned 0, and the patched wrapper returned 1. The placeholder never ran. - Replaced the child script in a temporary directory with a fixture returning 0, 7 or 42. The patched wrapper returned each value and preserved both named arguments, including a path containing a space. - This changes one PowerShell entry point. No GPU or Windows PowerShell 5.1 run was involved. Windows CI stopped in the first Clippy step on the unchanged `crash.rs:804` unused-function diagnostic for `unwind_copy`. The test step did not run. [PR check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46334644086/job/141572065992) · [Same main commit](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46320380085) ## Checked for overlap - [x] Checked open PRs for this script and exit-code fixes. #2486 concerns separate CMD launchers.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 01:26:01 +00:00
Author
Owner

@⁠trustno1-coder on GitHub · 2026-12-01 18:50 UTC · original

Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

**@⁠trustno1-coder** on GitHub · 2026-12-01 18:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3585#issuecomment-7321662053) Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
github-bot closed this pull request 2026-12-01 18:58:16 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3585
No description provided.