Repository navigation
Conversation
|
Reviewed statically, and tested what this machine can run:
No game data used. |
SkippySteve
left a comment
There was a problem hiding this comment.
Thanks. A thin launcher plus a smoke test that needs no game files is a good addition, and the asset story is clean: the fixture is Rust source compiled into a temp dir at test time, the README uses /path/to/game/title.exe, and nothing checked in points at a real install.
What I checked (Arch, on the PR head)
cargo xtask policyreportsasset policy: 154 files ok.bash -npasses on both scripts.- I tested
scripts/victory-proton.shwith a stubumu-runthat only prints its environment and argv, so nothing was launched:--helpexits 0, no args exits 2, and a missing build, missing title, or missingumu-runeach exit 1 with a clear message.- With
"<dir>/my title.exe" --execute --console series-s -- -foo "a b", argv arrives asZ:\…\victory.exe,run,Z:\…\my title.exe,--execute,--console,series-s,--,-foo,a b. Spaces survive and--passthrough works.WINEPREFIXdefaults to$XDG_DATA_HOME/victory/protonandSTEAM_COMPAT_INSTALL_PATHis the build's directory.
- I did not run
tests/proton-smoke.shend to end because this box has no LLVM-MinGW. So this review covers the shell and Rust logic, not the gnullvm TLS claim.
Toolchain overlap with #149 / #195
Both open Linux PRs build x86_64-pc-windows-msvc: #195 uses cargo xwin and #149 (docs) uses clang-cl/lld-link with an xwin sysroot. That build runs under UMU-Proton for us. This PR makes x86_64-pc-windows-gnullvm the Linux path, and the launcher only looks in target/x86_64-pc-windows-gnullvm/release/. Suggestions:
- When the gnullvm binary is missing, have the launcher fall back to
target/x86_64-pc-windows-msvc/release/victory.exe, or say in the README thatVICTORY_EXEcovers MSVC builds. Then the launcher works whichever recipe lands. - The README says the GCC-based
-gnutarget aborts in thread startup. Could you say whether the MSVC target is affected? If not, the README should say that either MSVC or gnullvm works and that only-gnuis broken. Otherwise readers will think they must use gnullvm. - On merge order, I'd land #195 first (Wine stubs,
#[cfg(windows)]fixes, and the policy/hook changes), then this one and #149. #149 is docs only, so I'm happy to rebase it to linkscripts/victory-proton.shandtests/proton-smoke.shand drop its duplicated run steps. #195 also touchescrates/victory-gpu/src/resource.rs, but in different hunks, so I expect no conflict.
Smaller notes
- GAMEID: the launcher leaves
GAMEIDunset, so umu-run warns and falls back toumu-default. Considerexport GAMEID=${GAMEID:-umu-victory}(what #149 documents) so protonfixes and the prefix are stable and the warning goes away. - The smoke test shares the real prefix.
tests/proton-smoke.shruns in the default prefix, which is the one that holds saves and converted data. A first run also pays the UMU runtime download there. It might be worth letting the test set its ownWINEPREFIX(for example${VICTORY_SMOKE_PREFIX:-…/victory/proton-smoke}) so it never touches a user's save prefix. pipefailvs. the comment. The comment says the result is checked "independently of its own exit code", but withset -o pipefail, a non-zero exit from umu/Proton teardown fails the script beforegrepruns. Either droppipefailfor that pipeline or reword the comment. Anchoring ontitle exited with 42with trailing whitespace allowed (for CRLF) is a good touch.hle-probe/build.rs:CARGO_CFG_TARGET_ENV == "gnu"is true for both-gnuand-gnullvm. On the GCC target,-fuse-ld=lldadds an lld requirement. CheckingCARGO_CFG_TARGET_ABI == "llvm"would keep the change scoped to the toolchain you tested.VICTORY_HLE_PROBEisn't documented. A line in the README saying how you ran the loader integration tests under Proton (build the probe on Linux, point the env var at it) would let others reproduce the "both loader integration tests passed" claim.- README headings: renaming
## Statusand## Getting startedchanges their anchors. That's fine if nothing links to them, but it's worth a grep.
Overall this direction looks right to me. Items 1–2 are what I'd most like settled before merge, so the three Linux PRs don't document conflicting builds.
|
Thanks @SkippySteve and @DaviTostes. Updated the launcher and docs in e3757d3.
Verified on Debian with UMU-Proton 11.0-2e: the smoke title returned 42, the separate gameplay prefix was never created, and both loader tests passed using the documented commands. I also checked MSVC fallback, build selection precedence, and argument forwarding with a stub launcher. |
|
Tested
No game data used. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
closing this as it’s been superseded by many other PRs |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This adds a Linux launcher for the Windows executable. It accepts a Linux path to the title, preserves the remaining
victory runarguments, and starts VIctory in a dedicated Proton prefix through UMU. The README includes cross-build instructions and a smoke test that runs without game files.The Linux build uses Rust’s
x86_64-pc-windows-gnullvmtarget. A build with the GCC-based Windows target aborted when a title DLL called into Rust during thread startup. LLVM-MinGW provides native Windows thread-local storage, which lets the loader restore the thread state before the Rust worker starts. The unwinder is linked statically so the executable works in a fresh prefix.Verification