HLE: handle verbatim/drive-root mounts and UNC/verbatim GetDiskFreeSpaceW roots #1771
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from Marvisak/VIctory. Originally posted by n-romanovich on 2026-11-24T22:17:55Z.
Fixes #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.Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T22:27:07Z.
Review: APPROVED
Verified locally merged onto
origin/main(70564ae, Windows 11 x64, Rust 1.98.1 MSVC):cargo test -p victory-hle --lib files::— 7 passed, 0 failed (includingverbatim_and_drive_root_mounts_translate_cleanlyandvolume_root_extracts_drive_and_unc_roots)cargo clippy -p victory-hle --all-targets— 0 warningscargo xtask policy— okClean handling of verbatim/drive-root mounts and UNC/verbatim
GetDiskFreeSpaceWvolume roots with targeted unit test coverage. Looks good.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T23:03:35Z.
Review: COMMENTED
Static review only: victory-hle is Windows-only — nothing compiles or runs on macOS; source review of the diff.
Verbatim/drive-root mounts and UNC/verbatim GetDiskFreeSpace: path canonicalization edge cases in the HLE storage layer. 7.6K, well-scoped.
Imported from Marvisak/VIctory. Originally posted by DesertGamer on 2026-11-24T22:23:33Z.
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.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:35:56Z.
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
Imported from Marvisak/VIctory. Originally posted by n-romanovich on 2026-11-25T01:45:44Z.
@Marvisak, rebased onto the current main and resolved the conflict in crates/victory-gpu/src/descriptor/host.rs.
Imported from Marvisak/VIctory. Originally posted by Calvix2k on 2026-11-25T02:29:37Z.
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.Imported from Marvisak/VIctory. Originally posted by BaggyALPHA on 2026-11-25T02:32:09Z.
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).
Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T04:23:52Z.
Test report: RTX 5060 Ti (Blackwell), Windows 11 Pro 26200, driver 621.24. Branch at
92bc933.cargo test --workspace --locked --no-fail-fast-> all green: 0 passed, 0 ignored, 0 failed.Imported from Marvisak/VIctory. Originally posted by StExpeditus on 2026-11-25T09:09:07Z.
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.Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T01:41:41Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.