HLE: handle verbatim/drive-root mounts and UNC/verbatim GetDiskFreeSpaceW roots #1772
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!1772
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1772"
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?
@n-romanovich on GitHub · 2026-11-24 22:17 UTC · original
n-romanovich:fix/hle-files-verbatim-and-volume-roots→main· +122 −24 · 1 files · 1 commits · openFixes #1742
Fixes virtual-drive path translation and volume-root extraction in
crates/victory-hle/src/modules/files.rs:\on verbatim drive-root mounts (\\?\C:\) inroot_wide()andverbatim().\\?\-mounted roots and\\?\title paths throughverbatim()so/and./..are normalized and\\?\is never prepended twice; avoid doubling separators on plain drive-root mounts (C:\).GetDiskFreeSpaceWviavolume_root()forC:\,\\?\C:\,\\server\share\, and\\?\UNC\server\share\.verbatim_and_drive_root_mounts_translate_cleanlyandvolume_root_extracts_drive_and_unc_roots.AI-assisted; verified with
cargo test -p victory-hle --locked(101 passed) andcargo clippy -p victory-hle --all-targets --locked.@DesertGamer on GitHub · 2026-11-24 22:23 UTC · original
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@Marvisak on GitHub · 2026-11-25 01:35 UTC · original · edited 2026-11-25 02:28 UTC
Automated triage for the maintainers.
Recommended for a maintainer's look. In
crates/victory-hle/src/modules/files.rs,translatenow sends any title\\?\path, or any mount whose root is itself\\?\, throughverbatim(). That removes the doubled\\?\prefix, converts/and resolves./..there, and produces\\?\UNC\...for UNC roots.root_wideandverbatimkeep the backslash of a\\?\C:\root, aC:\mount no longer doubles separators, andGetDiskFreeSpaceWreduces verbatim and UNC paths to their volume root through the newvolume_root. I traced each case in the new tests against the code and they hold; the bugs are as described in #1742. One small thing: the longstrip_prefixline involume_rootis not rustfmt-formatted (CI does not runcargo fmt). CI: passing.Generated by Claude Code
@n-romanovich on GitHub · 2026-11-25 01:45 UTC · original
@Marvisak, rebased onto the current main and resolved the conflict in crates/victory-gpu/src/descriptor/host.rs.
@Calvix2k on GitHub · 2026-11-25 02:29 UTC · original
Independent run on
92bc933, Windows 10 19045 (x64), current suite:cargo test -p victory-hle --lib --locked— 145 passed, 0 failed. The suite has grown since your run (101 then), so the two new tests plus all existing ones are green here too.mergeable: truefrom GitHub on this head; the triage verdict from 02:20 was merge-candidate. Nothing in the diff looks off to me: thevolume_rootcases coverC:\,\\?\C:\,\\server\share\,\\?\UNC\…, and a relative path falls through to the host call unchanged, which is what Windows does.@BaggyALPHA on GitHub · 2026-11-25 02:32 UTC · original
Independent Windows validation on
940d32fand this PR at92bc933. I canonicalized a temporary directory to get a verbatim host mount and exercised the real Win32 calls through our HLE wrappers.cargo test -p victory-hle --locked --lib -- --test-threads=1with the local probe: 146 passed, 0 failed. The fixture was generated locally. No game files or network shares were used.Merge overlap: Git reports a conflict between this head and #421 (
83b2037) infiles.rs. Both route an already-extended title path throughverbatim(). One explicit behavior to preserve or decide when resolving the overlap is #421's trailing separator for a bare extended virtual drive mounted to a host subdirectory. #1772 separately covers canonicalized host roots and volume queries.AI-assisted (OpenAI Codex).
@StExpeditus on GitHub · 2026-11-25 09:09 UTC · original
Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at
92bc933.cargo test --workspace --locked --no-fail-fast-> 698 passed, 5 failed, 10 ignored. The failures are the same 5 pre-existing NVIDIA 1M-view-heap-cap failures (also on main; see my reports on #2030 and #1940). Nothing introduced by this PR fails on this machine.@fuzeofficlal on GitHub · 2026-11-26 01:41 UTC · original
Code review and Windows 11 verification at head
92bc933761d8merged cleanly ontomain(63bcca43c6a0):crates/victory-hle/src/modules/files.rs:89-196, 434-490):\for\\?\X:\(min_len = 7) andX:\(min_len = 3), routes!prefix.is_empty() || root.starts_with(&VERBATIM) || len >= LONGthroughverbatim(root, tail)so.and..fold cleanly without escaping the mount root, strips duplicate leading separators on short drive-root mounts (C:\+foo), andvolume_roothandles\\?\UNC\server\share\,\\?\C:\,\\server\share\, andC:\cleanly.\\?\UNC\matching involume_rootis case-sensitive, and an empty tail on a\\?\UNC\server\share\mount does not re-add a trailing\.cargo xtask policy:191 files ok;cargo clippy --locked -p victory-hle --tests -- -D warnings: 0 warningscargo test --locked -p victory-hle -- --test-threads=1: 156/156 passed (154 lib +fidelityfx+no_dll_planting).LGTM.
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.