[PR #1312] [CLOSED] file_system: GetVolumeInformation and GetVolumePathName answer for the GAME: and T: roots (OLD-10051) #1342

Closed
opened 2026-11-26 20:20:55 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1312
Author: @ambroseautomation
Created: 11/24/2026
Status: ❌ Closed

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


📝 Commits (5)

  • 80a8257 file_system: resolve virtual drive volume queries
  • 0737b8c file_system: make volume queries read-only and Unicode-safe
  • f90041f file_system: keep T volume queries read-only
  • 9808a25 file_system: keep overlay volume identity stable
  • 44b5c07 file_system: map G volume to package

📊 Changes

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

View changed files

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

📄 Description

Summary

Coordination item: OLD-10051 (carry-forward of old-pr/10051, preserving original author tedin7 across all 5 commits).

Problem & Root Cause

Console titles query volume metadata and volume mount paths on Xbox virtual drives (GAME:, G:, T:) using GetVolumeInformationW/A and GetVolumePathNameW/A. Previously these calls were not intercepted in runtime/shims/file_system.cpp, so queries against virtual console roots failed or did not map to the underlying package/overlay volumes.

Implementation

  • Adds GetVolumeInformationW/A and GetVolumePathNameW/A shims in runtime/shims/file_system.cpp resolving GAME:, G:, and T: virtual drives to their corresponding package/overlay backing volumes.
  • Keeps volume queries read-only (including T: without creating overlay folders on query), Unicode-safe, and keeps overlay volume identity stable.
  • Maps G: volume queries to the package volume.
  • Adds comprehensive tests in runtime/test/file_system_test.cpp.

Tests Run

Environment: Windows 11 Pro 64-bit, Visual Studio 18 Community (cl.exe x64, /std:c++20 /W4 /permissive- /utf-8).

  • file_system_test.exe (compiled with runtime/test/file_system_test.cpp, runtime/shims/file_system.cpp, runtime/shims/registry.cpp, advapi32.lib, /OPT:NOREF) — 531 check(s), 0 failure(s) (PASS)
  • .\scripts\build_runtime.ps1 -jobs 8 — PASS (runtime/build/gta6rt.exe built cleanly)
  • python -I scripts/check_no_game_data.py runtime/shims/file_system.cpp runtime/test/file_system_test.cpp — PASS

Disclosure

AI-assisted: yes (carry-forward, rebase onto current main, and local MSVC build/test verification; original implementation by tedin7).


🔄 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/1312 **Author:** [@ambroseautomation](https://github.com/ambroseautomation) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `carry/old-10051-fs-volume-queries` --- ### 📝 Commits (5) - [`80a8257`](https://github.com/ubiquitarianism/leonida/commit/80a82574fba5e231cebd37dfbe80a6cd807b5766) file_system: resolve virtual drive volume queries - [`0737b8c`](https://github.com/ubiquitarianism/leonida/commit/0737b8c4870c7dac2e9c514bb699e768140c5f94) file_system: make volume queries read-only and Unicode-safe - [`f90041f`](https://github.com/ubiquitarianism/leonida/commit/f90041f91fac72f6c45bc8ad425b8afe61d626b5) file_system: keep T volume queries read-only - [`9808a25`](https://github.com/ubiquitarianism/leonida/commit/9808a25171b39cf352fd22f8fdfe36df84526c98) file_system: keep overlay volume identity stable - [`44b5c07`](https://github.com/ubiquitarianism/leonida/commit/44b5c072c7dc87fb7f67c5140ddba8be65b98a65) file_system: map G volume to package ### 📊 Changes **2 files changed** (+194 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/file_system.cpp` (+97 -2) 📝 `runtime/test/file_system_test.cpp` (+97 -0) </details> ### 📄 Description ## Summary Coordination item: `OLD-10051` (carry-forward of `old-pr/10051`, preserving original author `tedin7` across all 5 commits). ### Problem & Root Cause Console titles query volume metadata and volume mount paths on Xbox virtual drives (`GAME:`, `G:`, `T:`) using `GetVolumeInformationW/A` and `GetVolumePathNameW/A`. Previously these calls were not intercepted in `runtime/shims/file_system.cpp`, so queries against virtual console roots failed or did not map to the underlying package/overlay volumes. ### Implementation - Adds `GetVolumeInformationW/A` and `GetVolumePathNameW/A` shims in `runtime/shims/file_system.cpp` resolving `GAME:`, `G:`, and `T:` virtual drives to their corresponding package/overlay backing volumes. - Keeps volume queries read-only (including `T:` without creating overlay folders on query), Unicode-safe, and keeps overlay volume identity stable. - Maps `G:` volume queries to the package volume. - Adds comprehensive tests in `runtime/test/file_system_test.cpp`. ## Tests Run Environment: Windows 11 Pro 64-bit, Visual Studio 18 Community (`cl.exe` x64, `/std:c++20 /W4 /permissive- /utf-8`). - `file_system_test.exe` (compiled with `runtime/test/file_system_test.cpp`, `runtime/shims/file_system.cpp`, `runtime/shims/registry.cpp`, `advapi32.lib`, `/OPT:NOREF`) — **531 check(s), 0 failure(s)** (PASS) - `.\scripts\build_runtime.ps1 -jobs 8` — PASS (`runtime/build/gta6rt.exe` built cleanly) - `python -I scripts/check_no_game_data.py runtime/shims/file_system.cpp runtime/test/file_system_test.cpp` — PASS ## Disclosure AI-assisted: yes (carry-forward, rebase onto current `main`, and local MSVC build/test verification; original implementation by tedin7). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:55 +01:00
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#1342
No description provided.