fix(cli): keep network-share paths when victory play starts a title #93
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!93
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-93"
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-unc-exe-path→main· +33 −3 · 1 files · 1 commits · merged 2026-11-28 19:01 UTCvictory play(and a start with no command, a double click) takes the title's executable throughfs::canonicalizeand then removes the\\?\prefix by trimming the string. On Windows,canonicalizereturns a path on a network share, or on a mapped drive, in its verbatim UNC form:\\?\UNC\server\share\.... Removing only\\?\leavesUNC\server\share\..., which is a relative path that does not exist.Impact: a title kept on a NAS or a mapped drive cannot be started with
victory play, because it is read fromUNC\.... The settings menu's restart line (VICTORY_MENU_ARGS) carries the same broken path.Probe, on a local share:
A local path (
C:\...) was never affected.Fix
without_verbatim_prefix():\\?\UNC\server\share\xbecomes\\server\share\x,\\?\C:\xbecomesC:\x, and any other path is left alone.prepareuses it in place of the string trim.Verification
play::tests::the_verbatim_prefix_goes_and_a_share_keeps_its_server. It passes with the fix. With the old expression in place it fails withleft: "UNC\\nas\\games\\GTA6\\game_scarlett_master.exe",right: "\\\\nas\\games\\GTA6\\game_scarlett_master.exe".victory.exe play \\localhost\Users\...\fake-title.exenow gets past the path and reads the file, then fails in the PE parser (malformed image: Unknown file magic). The path it hands on is now a real one.cargo test -p victory --locked: all pass.cargo clippy -p victory --all-targets: no diagnostics inplay.rs. The crate's one diagnostic (warm.rs:102,manual_is_multiple_of) exists onmainand is not touched here.rustfmt:play.rsalready has formatting differences onmain; none is on a line this PR adds.victory playstarts a title 0bf686cb95@1tsethan on GitHub · 2026-11-27 23:01 UTC · original
Independent Windows validation of PR #93.
Tested commit:
0bf686cb95e365a1be8fa235f8ba23a646ca221c.cargo test --locked -p victory the_verbatim_prefix_goes_and_a_share_keeps_its_server -- --nocaptureExit: 0.
The synthetic UNC normalization test is separate from current-main integration: merge-tree reports a conflict against
df2daaf. No live network share launch was tested.Independent verification with OpenAI Codex assistance. Windows 11 Pro build 26200; Rust 1.98.1 MSVC; Windows SDK libraries from Microsoft.Windows.SDK.CPP.x64 10.0.28000.2957. Test harness used an RTX 3070 Ti / AMD integrated-GPU host; adapter identity was not captured for every test. These are focused checks on the stated PR commit, not gameplay, FPS, or a merged-main integration result.