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

Open
opened 2026-11-26 20:19:02 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/747
Author: @abnalstlll-byte
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: restore/old-10051-fs-volume-queries


📝 Commits (6)

  • 5a629ca file_system: resolve virtual drive volume queries
  • c0c6bc7 file_system: make volume queries read-only and Unicode-safe
  • 2d8b6b3 file_system: keep T volume queries read-only
  • 9fbc508 file_system: keep overlay volume identity stable
  • f844978 file_system: map G volume to package
  • 70cb7bb file_system: map GAME: prefix to package volume as well as G:

📊 Changes

2 files changed (+197 additions, -2 deletions)

View changed files

📝 runtime/shims/file_system.cpp (+97 -2)
📝 runtime/test/file_system_test.cpp (+100 -0)

📄 Description

### 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).


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/747 **Author:** [@abnalstlll-byte](https://github.com/abnalstlll-byte) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `restore/old-10051-fs-volume-queries` --- ### 📝 Commits (6) - [`5a629ca`](https://github.com/ubiquitarianism/leonida/commit/5a629ca445fd66d58712807eb1b4374613c55900) file_system: resolve virtual drive volume queries - [`c0c6bc7`](https://github.com/ubiquitarianism/leonida/commit/c0c6bc7d843164867e72a1c1ba0d4bcf8735e575) file_system: make volume queries read-only and Unicode-safe - [`2d8b6b3`](https://github.com/ubiquitarianism/leonida/commit/2d8b6b36eb8e57809129ddeaa8225a747e99c0bc) file_system: keep T volume queries read-only - [`9fbc508`](https://github.com/ubiquitarianism/leonida/commit/9fbc5087c72ce1b183f47cfe5ab5df8e16f0e739) file_system: keep overlay volume identity stable - [`f844978`](https://github.com/ubiquitarianism/leonida/commit/f844978bc596dd4a3ee52481bb99f8f96610690f) file_system: map G volume to package - [`70cb7bb`](https://github.com/ubiquitarianism/leonida/commit/70cb7bb858d72ef596a9ed4d8d58bf45a9781c4a) file_system: map GAME: prefix to package volume as well as G: ### 📊 Changes **2 files changed** (+197 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/file_system.cpp` (+97 -2) 📝 `runtime/test/file_system_test.cpp` (+100 -0) </details> ### 📄 Description ### 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). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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
starred/leonida#785
No description provided.