[GH #3] play.ps1 returns success when victory.exe fails to launch the title #3
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Imported from Zettrox/ztrx. Originally posted by yualk on 2026-11-25T01:46:17Z.
scripts/play.ps1prints the child's nonzero exit code and writes the error toztrx.log, but the PowerShell process exits with 0. This makes a failed launch count as a successful sample in batch testing or timing automation.Reproduced on Windows 11 10.0.26200, Windows PowerShell 5.1, revision
90b529f,cargo build --release --locked -p victory(Rust 1.98.1, x64 MSVC). No game files or GPU needed:The wrapper prints
Exited with 1, and the log records the missing input, so the child failure is already detected. I tested replacing the finalWrite-Hostwith the following lines. The same command then exits 1 and still logs the original error:This report is only about launcher status propagation, not game stability or graphics.
Imported from Zettrox/ztrx. Originally posted by Yoshi-233 on 2026-11-25T02:51:05Z.
I reproduced the exit-status loss separately with PowerShell 7.7.0 on Linux at
90b529f. Using the unmodifiedscripts/play.ps1with-Exepointing to a tiny native argument recorder, I set the child to exit 0, 7 and 42. The script printed the correct child status each time, but the calling process observed 0, 0, 0.I then tested the three-line change proposed above on a temporary copy (save
$LASTEXITCODEimmediately after the pipeline, log it, thenexit $code). The caller observed 0, 7, 42 and the log still received the child's output in all three cases. This isolates status propagation from GPU, title and cache behavior.