fix(cli): keep network-share paths when victory play starts a title #93
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Caasares on 2026-11-27T17:57:37Z.
victory 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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 1tsethan on 2026-11-27T23:01:17Z.
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.