mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:50:52 +01:00
[PR #1312] [CLOSED] file_system: GetVolumeInformation and GetVolumePathName answer for the GAME: and T: roots (OLD-10051) #1342
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1342
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 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)
80a8257file_system: resolve virtual drive volume queries0737b8cfile_system: make volume queries read-only and Unicode-safef90041ffile_system: keep T volume queries read-only9808a25file_system: keep overlay volume identity stable44b5c07file_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 ofold-pr/10051, preserving original authortedin7across all 5 commits).Problem & Root Cause
Console titles query volume metadata and volume mount paths on Xbox virtual drives (
GAME:,G:,T:) usingGetVolumeInformationW/AandGetVolumePathNameW/A. Previously these calls were not intercepted inruntime/shims/file_system.cpp, so queries against virtual console roots failed or did not map to the underlying package/overlay volumes.Implementation
GetVolumeInformationW/AandGetVolumePathNameW/Ashims inruntime/shims/file_system.cppresolvingGAME:,G:, andT:virtual drives to their corresponding package/overlay backing volumes.T:without creating overlay folders on query), Unicode-safe, and keeps overlay volume identity stable.G:volume queries to the package volume.runtime/test/file_system_test.cpp.Tests Run
Environment: Windows 11 Pro 64-bit, Visual Studio 18 Community (
cl.exex64,/std:c++20 /W4 /permissive- /utf-8).file_system_test.exe(compiled withruntime/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.exebuilt cleanly)python -I scripts/check_no_game_data.py runtime/shims/file_system.cpp runtime/test/file_system_test.cpp— PASSDisclosure
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.