file_system: GetVolumeInformation and GetVolumePathName answer for the GAME: and T: roots #317

Open
github-bot wants to merge 5 commits from github-bot/gh-317 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 03:08 UTC · original
ubiquitarianism:old-pr/10051 → main · +194 −2 · 2 files · 5 commits · draft

Carried over from old PR 10051 by tedin7 in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/10051, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
tedin7: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

@ItsNotRexed: an exe PR, as you asked.

Rebased cleanly on current main; supersedes #8669 closed during org migration.

What

GetVolumeInformationA/W and GetVolumePathNameA/W in runtime/shims/file_system.cpp answer for the console GAME:/G: and T: roots. G: reports the host package volume, T: the volume of the overlay's nearest existing ancestor (stable before and after the overlay exists). The queries are read-only (they never create the overlay), Unicode-safe, reject a short buffer, and pass host paths through. One small change in parse_console: a create_scratch flag so a query does not create the scratch folder.

Why

Before this, the console roots fell through to the host and returned the wrong volume or failed.

Tested

file_system_test (clang-cl cross build, run under Wine): +97 lines of checks.

  • With the fix: 511 checks, 7 failures.
  • Negative control (shim reverted to origin/main, same test file): 30 failures, 23 of them the new volume checks.
  • The 7 remaining failures (MAXIMUM_ALLOWED CreateFile x6, *.? listing x1) are identical on main, Wine-only, unrelated.
**@⁠Andretuta** on GitHub · 2026-11-24 03:08 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/317) `ubiquitarianism:old-pr/10051` → `main` · +194 −2 · 2 files · 5 commits · draft > Carried over from **old PR 10051** by `tedin7` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/10051`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `tedin7`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): `@ItsNotRexed`: an exe PR, as you asked. Rebased cleanly on current main; supersedes `#8669` closed during org migration. ## What GetVolumeInformationA/W and GetVolumePathNameA/W in `runtime/shims/file_system.cpp` answer for the console GAME:/G: and T: roots. G: reports the host package volume, T: the volume of the overlay's nearest existing ancestor (stable before and after the overlay exists). The queries are read-only (they never create the overlay), Unicode-safe, reject a short buffer, and pass host paths through. One small change in `parse_console`: a `create_scratch` flag so a query does not create the scratch folder. ## Why Before this, the console roots fell through to the host and returned the wrong volume or failed. ## Tested `file_system_test` (clang-cl cross build, run under Wine): +97 lines of checks. - With the fix: 511 checks, 7 failures. - Negative control (shim reverted to origin/main, same test file): 30 failures, 23 of them the new volume checks. - The 7 remaining failures (MAXIMUM_ALLOWED CreateFile x6, `*.?` listing x1) are identical on main, Wine-only, unrelated.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:53:09 +00:00
This pull request has changes conflicting with the target branch.
  • runtime/shims/file_system.cpp
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/317/head:github-bot/gh-317'
git switch 'github-bot/gh-317'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-317'
git switch 'github-bot/gh-317'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-317'
git switch 'github-bot/gh-317'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-317'
git switch 'main'
git merge --squash 'github-bot/gh-317'
git switch 'main'
git merge --ff-only 'github-bot/gh-317'
git switch 'main'
git merge 'github-bot/gh-317'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.