xcl run: keep the UNC path of a game folder on a network share #574
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/579"
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 ivall/xcl. Originally posted by 0klavair on 2026-11-24T02:02:24Z.
xcl runcannot start a game whose folder is on a network share. The folder (a mapped drive such asW:\…, or\\server\share\…) canonicalizes to\\?\UNC\server\share\…, andresolve_location/config_rootcut only the leading\\?\. That leaves the relative pathUNC\server\share\…:is_dir()is false on it, the folder is taken for an exe, and the start fails:Both places now use
vfs::strip_verbatim, which already turns\\?\UNC\server\shareback into\\server\sharefor the VFS roots.What is in it
crates/xcl/src/launcher.rs:resolve_locationandconfig_rootgo throughvfs::strip_verbatim; new testgame_folder_on_a_network_share_keeps_its_unc_path, which resolves a temp folder through the machine's administrative share (\\localhost\C$\…) as a folder and as an exe. It printsSKIPPEDand returns when that share is not reachable.crates/xcl/src/vfs.rs:strip_verbatimispub(crate).Tested
cargo test --workspace -- --test-threads=4(debug): 681 passed, 0 failed, 41 ignored. SKIPPED:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64).UNC\localhost\C$\…) and passes with it.W::mainstops withCreateProcessW: error 267as above; with this PR it starts, shows its menus at 30 fps and reaches world loading.Regression run
This PR's head, on the title from the network share:
main(508a0c7) on the same title and folder produces no block: the title does not start, which is the bug, andsmoke.ps1stops withXCL printed no log pathafter the output above. The game is 208 GB and does not fit on this machine's local disks, so I could not runmainon a local copy.Not tested
mainsmoke block on the same title (see above).C:\…path:strip_verbatimleaves it as the old trim did).SKIPPEDand does not cover the change.AI use
Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T03:33:20Z.
Test run of
84b691af0a4e0e7da8224afaf91d92b24335008don AMD RDNA4. I merged it onto currentmain91f9a5elocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 693 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 653 passed, 0 failed, 21 ignoredSKIPPED;game_folder_on_a_network_share_keeps_its_unc_pathpasses (the\\localhost\C$administrative share exists here, so it ran rather than skipped).Review:
strip_verbatimkeeps\\?\UNC\server\share\…as\\server\share\…instead of cutting only the verbatim prefix and leaving a relativeUNC…path. I found nothing to change.Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T06:43:17Z.
Empirical test report (
84b691af)Hardware / environment
84b691af0a4e0e7da8224afaf91d92b24335008don Windows 11 Enterprise Evaluation, build 26200 (10.0.26200), with an AMD Ryzen 7 3800X 8-Core Processor.1.100.0 (0ef1bc386 2026-11-09), hostx86_64-pc-windows-msvc. DXC1.9.2609.5 (01b62ad47).XCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. Cargo ran directly without the Arc test wrapper. The test profile was unoptimized.Commands and results
cargo test --workspace --no-runexited 0 and built the workspace test binaries without executing them.cargo test -p xcl --lib launcher::tests::exited 0 with 13 passed, 0 failed, 0 ignored, and 0 skipped.cargo test -p xcl --lib vfs::tests::a_console_drive_mount_leaves_xcls_shader_cache_on_that_drive -- --exactexited 0 with 1 passed, 0 failed, 0 ignored, and 0 skipped.cargo test -p xcl --test e2e launcher_uses_configured_exe_in_an_ambiguous_folder -- --exactexited 0 with 1 passed, 0 failed, 0 ignored, and 0 skipped.^SKIPPEDlines in the combined output.Observed behavior
Not tested
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr579-focused.log and published.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T13:18:30Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by Wolf1098 on 2026-11-27T05:08:46Z.
https://github.com/xcl-dev/xcl/pull/2797
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:44:35Z.
Triage (#1607) – head
84b691aNot on main:
launcher.rsresolve_locationandconfig_rootstill usetrim_start_matches("\\\\?\\"), which leavesUNC\server\...for a folder on a share; going throughvfs::strip_verbatimfixes that, and the new test reproduces it through\\localhost\C$.#1233 carries this exact commit ("xcl run: keep the UNC path of a game folder on a network share") together with an unrelated
eh.rsassert-recovery change; this PR was opened first and has only this fix, so #1233 should drop that commit rather than this PR being closed.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.