HLE media: translate \??\<drive> paths through the virtual drives #3273
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!3273
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3273"
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?
@andrewpozdnakov7-jpg on GitHub · 2026-11-26 15:23 UTC · original
andrewpozdnakov7-jpg:fix/2410-media-drive-path→main· +14 −2 · 1 files · 1 commits · openmedia::localhandles\\?\<drive>by letting the path reachfiles::translate, but the\??\<drive>spelling returned early with the title's URL unchanged. A title that opens a media file as\??\G:\video.mp4handed Media Foundation the virtual drive letter instead of the host folder behind it.The
\??\branch now translates the drive path like the other spellings, and keeps the title's own spelling when the drive is not virtual, so\??\C:\Windows\a.wavstill comes back exactly as given.mediatests:\??\<letter>:\movies\intro.mp4reads the file from the mounted folder, next to the existing\\?\andfile:cases.cargo test -p victory-hle: all suites pass (147 lib tests plus the probes).cargo clippy -p victory-hle --all-targets -- -D warnings: clean.cargo xtask policy: 192 files ok.Fixes #2410.
@Dukestar69 on GitHub · 2026-11-26 15:27 UTC · original · approved these changes
Reviewed the diff and verified locally on Windows 11 x64:
\??\<drive>paths viafiles::translate(&wide)while preserving untranslated host-drive paths viaunwrap_or_else(|| with_nul(url))cleanly aligns\??\with\\?\for virtual drives.cargo test -p victory-hle --lib modules::media:: -- --test-threads=1: 5 passed, 0 failed (includingonly_local_files_reach_the_hostcovering\??\<drive>).cargo clippy -p victory-hle --all-targets -- -D warnings: clean.cargo xtask policy: 191 files ok.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@AurumCarlos on GitHub · 2026-11-26 15:27 UTC · original · reviewed
The change is correct:
resttakes the samefiles::translatepath as plain drive paths, and a host drive keeps the title's\??\spelling.But #2089 (still open) already fixes
\??\virtual-drive translation, in bothmedia.rsandfiles.rs. #3030 was closed in favour of it, and #2416 (same issue, #2410) was closed too. Worth linking it and agreeing with its author which one goes forward, since this one covers only the media half.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.