fix(scripts): launchers exit with the title's failure, not 0 #94
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!94
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-94"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Caasares on GitHub · 2026-11-27 17:57 UTC · original
Caasares:fix/app-launcher-exit-code→main· +8 −5 · 2 files · 1 commits · openscripts/play-foxhound.ps1andscripts/play.ps1always ended with exit code 0. That covers:victory runreturned 3 in the check below);-Exe, a missing build, and nocargoto build with (these used a barereturn).Anything that calls the launcher (a script, a scheduled task, CI) cannot tell a failed start from a good one.
Fix
exit 1.victory run, the launcher exits withvictory run's exit code (exit $LASTEXITCODE).Successful starts still exit 0.
PLAY_FRAMEGEN.cmdends withpauseandplay-gta6-framegen.ps1does not forward the code, so the double-click path is unchanged; this only affects callers ofplay-foxhound.ps1andplay.ps1directly.Verification
No automated test covers the scripts, so this was checked with a stand-in
victory.exe: a compiled program that exits 3 for a file whose text beginsFAIL(a crashing title), and 0 otherwise.play-foxhound.ps1, title crashes (victory runexit 3)play-foxhound.ps1, missing-Exeplay.ps1, title crashesplay.ps1, missing-ExeBoth files parse with no errors. No Rust code changed, so the Rust gates are unaffected.
@1tsethan on GitHub · 2026-11-27 23:01 UTC · original
Tested PR commit:
4b8219d9d2ba25e6daaa067f62360429f0c46098.With an authored stub executable exiting 7,
scripts/play-foxhound.ps1on maindf2daafreturned 0, while this PR returned 7. The test used a private fixture directory and Windows PowerShell 5.1; no game executable was run.Verified independently with OpenAI Codex assistance. No gameplay or performance claims.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.