HLE media: translate \??\<drive> virtual-drive URLs via files::translate #2410

Open
opened 2026-11-26 05:04:59 +00:00 by github-bot · 2 comments
Owner

@⁠pushkarreddyy on GitHub · 2026-11-25 13:07 UTC · original

Summary

In crates/victory-hle/src/modules/media.rs (local()), \??\<drive> object-manager paths return Ok(with_nul(url)) directly without passing through files::translate, unlike \\?\<drive> paths.

When a title passes a virtual-drive path with the \??\ prefix (e.g. \??\G:\video.mp4), the host Media Foundation source resolver receives the untranslated virtual drive letter instead of the host folder.

Expected

Translate \??\<drive> virtual-drive paths via files::translate (preserving \??\<drive> untouched when the drive is not a virtual mount).

Claiming this issue and opening a PR with regression tests shortly.

**@⁠pushkarreddyy** on GitHub · 2026-11-25 13:07 UTC · [original](https://github.com/Marvisak/VIctory/issues/2410) ### Summary In `crates/victory-hle/src/modules/media.rs` (`local()`), `\??\<drive>` object-manager paths return `Ok(with_nul(url))` directly without passing through `files::translate`, unlike `\\?\<drive>` paths. When a title passes a virtual-drive path with the `\??\` prefix (e.g. `\??\G:\video.mp4`), the host Media Foundation source resolver receives the untranslated virtual drive letter instead of the host folder. ### Expected Translate `\??\<drive>` virtual-drive paths via `files::translate` (preserving `\??\<drive>` untouched when the drive is not a virtual mount). *Claiming this issue and opening a PR with regression tests shortly.*
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:04:59 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 15:43 UTC · original

Automated triage for the maintainers.

Confirmed on main (da82e44): in crates/victory-hle/src/modules/media.rs, local() returns Ok(with_nul(url)) for a \??\<drive>: URL, while the \\?\<drive>: branch falls through to files::translate. files::translate (crates/victory-hle/src/modules/files.rs) only recognises the \\?\ prefix, so a \??\ path on a virtual drive reaches the host resolver untranslated.

Open PR #2416 addresses this (rewrites the prefix to \\?\ before calling files::translate, with a unit test).


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 15:43 UTC · [original](https://github.com/Marvisak/VIctory/issues/2410#issuecomment-7167281228) <!-- victory-issue-triage v1 verdict=confirmed seen=2026-11-25T13:07:26Z at=2026-11-25T15:43:44Z --> Automated triage for the maintainers. Confirmed on main (da82e44): in `crates/victory-hle/src/modules/media.rs`, `local()` returns `Ok(with_nul(url))` for a `\??\<drive>:` URL, while the `\\?\<drive>:` branch falls through to `files::translate`. `files::translate` (`crates/victory-hle/src/modules/files.rs`) only recognises the `\\?\` prefix, so a `\??\` path on a virtual drive reaches the host resolver untranslated. Open PR #2416 addresses this (rewrites the prefix to `\\?\` before calling `files::translate`, with a unit test). --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-26 15:27 UTC · original

Opened PR #3273: the ??<drive> spelling now goes through iles::translate like \?<drive>, so ??\G:\video.mp4 reaches Media Foundation as the host folder. A host drive is left exactly as the title spelled it, prefix included. CI check passed (3m7s), the PR is clean on main. The coordination claim is in #1633.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-26 15:27 UTC · [original](https://github.com/Marvisak/VIctory/issues/2410#issuecomment-7196286368) Opened [PR #3273](https://git.gtahub.st/github/Marvisak--VIctory/pulls/3273): the \??\<drive> spelling now goes through iles::translate like \\?\<drive>, so \??\G:\video.mp4 reaches Media Foundation as the host folder. A host drive is left exactly as the title spelled it, prefix included. CI check passed (3m7s), the PR is clean on main. The [coordination claim](https://git.gtahub.st/github/Marvisak--VIctory/issues/1633) is in #1633.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#2410
No description provided.