file_system: GetVolumeInformation and GetVolumePathName answer for GAME: and T: roots (OLD-10051) #747

Closed
abnalstlll-byte wants to merge 6 commits from upstream-pr/747 into main
abnalstlll-byte commented 2026-11-24 13:23:40 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-24T13:23:40Z.


### Summary
Restores and updates work from draft PR #317 (old-pr/10051 / item OLD-10051).
Original commits by @tedin7 (f69cd721e..e6c5a64b1).

Implements Win32 volume information queries for console virtual drives:

  • GetVolumeInformationW / GetVolumeInformationA: resolves virtual drives without leaking host paths.
    • Queries for GAME: / G:\ resolve to the package root (roots().game).
    • Queries for T:\ and virtual overlay roots resolve to the persistent overlay directory (roots().overlay).
    • Supports ANSI and Unicode APIs, preserving drive identity across overlay directory creation.
  • GetVolumePathNameW / GetVolumePathNameA: returns virtual console root prefix for console paths (G:\, T:\).
  • Unit tests in runtime/test/file_system_test.cpp verify host volume resolution, character encodings, and root path formatting.

Verification

  • python -I scripts/check_no_game_data.py runtime/shims/file_system.cpp runtime/test/file_system_test.cpp -> Clean (no game data)
  • Clean rebase of all 5 commits onto latest ubi/main (21625bca8).

AI-assisted verification and rebase by Antigravity (Autonomous Direct Mode).

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5472980938 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/747). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-24T13:23:40Z. --- ### Summary Restores and updates work from draft PR #317 (`old-pr/10051` / item `OLD-10051`). Original commits by @tedin7 (`f69cd721e`..`e6c5a64b1`). Implements Win32 volume information queries for console virtual drives: - `GetVolumeInformationW` / `GetVolumeInformationA`: resolves virtual drives without leaking host paths. - Queries for `GAME:` / `G:\` resolve to the package root (`roots().game`). - Queries for `T:\` and virtual overlay roots resolve to the persistent overlay directory (`roots().overlay`). - Supports ANSI and Unicode APIs, preserving drive identity across overlay directory creation. - `GetVolumePathNameW` / `GetVolumePathNameA`: returns virtual console root prefix for console paths (`G:\`, `T:\`). - Unit tests in `runtime/test/file_system_test.cpp` verify host volume resolution, character encodings, and root path formatting. ### Verification - `python -I scripts/check_no_game_data.py runtime/shims/file_system.cpp runtime/test/file_system_test.cpp` -> Clean (no game data) - Clean rebase of all 5 commits onto latest `ubi/main` (`21625bca8`). AI-assisted verification and rebase by Antigravity (Autonomous Direct Mode).
PierreEbele commented 2026-11-25 01:49:32 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by PierreEbele on 2026-11-25T01:49:32Z.


Reviewed 0a4619da. I read the 6-commit diff (runtime/shims/file_system.cpp and runtime/test/file_system_test.cpp) and ran scripts/check_no_game_data.py on both files (clean). file_system_test is a Windows-only target, so it could not run here. On this head's windows CI job it passes (file_system ... Passed, 299/299). The new test block calls resolve("kernel32.dll", "GetVolumeInformationW"), which is null on main, so the test fails there by construction.

Read statically, these all check out:

  • the volume identity: package volume for G:/GAME:, nearest existing overlay ancestor for T:;
  • create_scratch=false, so the volume queries never create the scratch folder or the overlay, while existing callers keep the default;
  • the A/W buffer arithmetic of GetVolumePathName;
  • the error codes.

Merges: clean against current origin/main. It conflicts with sibling PR #766 in file_system.cpp: both insert at the same anchor and extend the FILE_API list. Whichever merges second needs a short rebase. No findings. AI-assisted review.

Recommendation: Merge

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7150000227 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/747#issuecomment-7150000227). Originally posted by [PierreEbele](https://github.com/PierreEbele) on 2026-11-25T01:49:32Z. --- Reviewed 0a4619da. I read the 6-commit diff (`runtime/shims/file_system.cpp` and `runtime/test/file_system_test.cpp`) and ran `scripts/check_no_game_data.py` on both files (clean). `file_system_test` is a Windows-only target, so it could not run here. On this head's `windows` CI job it passes (`file_system ... Passed`, 299/299). The new test block calls `resolve("kernel32.dll", "GetVolumeInformationW")`, which is null on main, so the test fails there by construction. Read statically, these all check out: - the volume identity: package volume for `G:`/`GAME:`, nearest existing overlay ancestor for `T:`; - `create_scratch=false`, so the volume queries never create the scratch folder or the overlay, while existing callers keep the default; - the A/W buffer arithmetic of `GetVolumePathName`; - the error codes. Merges: clean against current `origin/main`. It conflicts with sibling PR #766 in `file_system.cpp`: both insert at the same anchor and extend the `FILE_API` list. Whichever merges second needs a short rebase. No findings. AI-assisted review. **Recommendation:** Merge
abnalstlll-byte commented 2026-11-25 21:53:33 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by abnalstlll-byte on 2026-11-25T21:53:33Z.


Rebased onto latest \main.
Verified \scripts/check_no_game_data.py\ (clean) on
untime/shims/file_system.cpp\ and
untime/test/file_system_test.cpp, and \git diff --check.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7175672214 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/747#issuecomment-7175672214). Originally posted by [abnalstlll-byte](https://github.com/abnalstlll-byte) on 2026-11-25T21:53:33Z. --- Rebased onto latest \main\. Verified \scripts/check_no_game_data.py\ (clean) on \ untime/shims/file_system.cpp\ and \ untime/test/file_system_test.cpp\, and \git diff --check\. AI-assisted (Claude Code, Claude Opus 5.5).
MoonEyes commented 2026-11-28 02:48:39 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-28T02:48:39Z.


Hi @abnalstlll-byte, thanks for this pull request. It currently conflicts with main (conflicting file(s): runtime/shims/file_system.cpp), so it carries the needs rebase label. CONTRIBUTING.md asks authors to rebase their branch on main; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here.

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7232608178 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/747#issuecomment-7232608178). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T02:48:39Z. --- Hi @abnalstlll-byte, thanks for this pull request. It currently conflicts with `main` (conflicting file(s): `runtime/shims/file_system.cpp`), so it carries the `needs rebase` label. CONTRIBUTING.md asks authors to rebase their branch on `main`; once it merges cleanly the label goes within the hour, and reviews start with the pull requests that do. Could you update the branch when you have a moment? If you no longer plan to continue with it, please say so here. AI-assisted (Claude Code, Claude Opus 5.5).
OreoFR commented 2026-11-28 21:43:38 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-28T21:43:38Z.


Verified by OreoFR

  • Base: main c1ecf04ed + PR head 70cb7bb85
  • Test: not run (merge conflict with main)
  • Red on main: not run
  • Green with the PR: not run
  • Verdict: CONFLICT (conflicts with main in runtime/shims/file_system.cpp (2 hunks: scratch folder creation and get_disk_free_space_ex_w))
  • Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11

AI-assisted (Claude Code, Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7246227256 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/747#issuecomment-7246227256). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-28T21:43:38Z. --- **Verified by OreoFR** - Base: main `c1ecf04ed` + PR head `70cb7bb85` - Test: not run (merge conflict with main) - Red on main: not run - Green with the PR: not run - Verdict: CONFLICT (conflicts with main in runtime/shims/file_system.cpp (2 hunks: scratch folder creation and get_disk_free_space_ex_w)) - Machine: RTX 4070 Laptop 8 GB, NVIDIA 621.40, Intel Core Ultra 7 155H, Windows 11 AI-assisted (Claude Code, Claude Opus 5.5).
aslan2142 commented 2026-12-01 16:31:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by aslan2142 on 2026-12-01T16:31:21Z.


Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, d3d12/, or general docs), please feel free to reopen it.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7317745676 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/747#issuecomment-7317745676). Originally posted by [aslan2142](https://github.com/aslan2142) on 2026-12-01T16:31:21Z. --- Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (`d3d12/`) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools, `d3d12/`, or general docs), please feel free to reopen it.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
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.

Reference
ProjectLeonida/mandy!747
No description provided.