runtime: test scoped guest content-root mapping #976
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/983"
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 R0Y00/Xbox2Windows. Originally posted by Jess-Doit on 2026-11-23T19:49:11Z.
Change
Refs #870. Add the scoped content-root fixture requested in the startup thread. A source-built Windows EXE binds a free guest letter in its own process and opens generated archive bytes from a package root. Claim
The fixture checks the exact package bytes and read-only access. A file present only in the separate save/config directory returns
ERROR_FILE_NOT_FOUND. Binding an occupied host letter is refused. Both successful and missing-file scopes release the mapping, preserve the host drive mask, and remove their generated files.Verification
f9a4c09on Windows 10 22H2 (19045.6456), MSVC 19.44.35230 x64, Windows SDK 10.0.26100. Debug and Release each passed 1/1 with no skips. The docs link, source text, and diff checks passed.The three local controls failed at the intended assertions when deliberately redirecting to the save/config root, accepting an occupied drive, or retaining the mapping after scope exit.
Evidence and follow-up
The original fixture and generated byte strings are MIT-licensed. The resolver covers the fixture's root-level generated archive names. Windows drive assignments and the package loader use their existing behavior. Reproduction notes
Checklist
AI-assisted (Codex).