HLE: honor the requested executable on relaunch #455
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!455
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/455/head"
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?
@Quat3rnion on GitHub · 2026-11-24 03:37 UTC · original
Quat3rnion:victory-relaunch-args→main· +82 −8 · 1 files · 2 commits · merged 2026-11-25 00:10 UTCWhat
runtime::set_image_pathmakes the title image path absolute, butrelaunch_argssearched the raw command line for that exact string. Aftervictory run game.exe --execute, anXLaunchNewGamerequest for a differentexecutable found no match and silently reran
game.exe. This normalises thelaunch argument the same way
runtimedoes before replacing it, so relativestartup paths work and the requested executable is used.
The same helper split the title's arguments with
split_whitespace, whichbroke quoted paths from the title's configuration. A small splitter keeps
quoted strings together, including empty arguments. The child process gets
those as separate argv entries;
lifecycle::relaunchalready passes themthrough with
Command::argsand does not re-split.An AI tool wrote part of this change.
Tested
cargo test --workspace: 165 passed, 0 failed, 3 ignored. The existing argv test still passes; a new regression uses a relative startup path, a different target, and a quoted path plus an empty argument.cargo check --target x86_64-pc-windows-gnu --workspace --testspasses. No Windows host here, so the spawned child was not run.cargo xtask policypasses (150 files ok). No game files or data from them were added.XLaunchNewGamecall; the regression is at the argument-building layer.Checklist
cargo xtask policypasses. No game files or data from them were added.@Quat3rnion on GitHub · 2026-11-24 07:30 UTC · original
Rebased on current main. Fixed split_args to quote only on double quotes; apostrophes are ordinary text. Added -name=O'Brien to the regression. New head a9bc94e.