mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:25:52 +01:00
[PR #1234] file_system: shim GetDiskFreeSpaceExA/W, GetDiskFreeSpaceA/W, and GetDriveTypeA/W (RT-FS-DISK-SPACE) #1266
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#1266
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/1234
Author: @piyonchu
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:pr/file-system-disk-space📝 Commits (1)
83ef3eefile_system: shim GetDiskFreeSpaceExA/W, GetDiskFreeSpaceA/W, and GetDriveTypeA/W for GAME:, G:, and T: (RT-FS-DISK-SPACE)📊 Changes
2 files changed (+370 additions, -10 deletions)
View changed files
📝
runtime/shims/file_system.cpp(+197 -10)📝
runtime/test/file_system_test.cpp(+173 -0)📄 Description
Summary
Claim ID:
RT-FS-DISK-SPACEShims
GetDiskFreeSpaceExA/W,GetDiskFreeSpaceA/W, andGetDriveTypeA/Winruntime/shims/file_system.cpp(registered acrosskernel32.dll,kernelbase.dll, andapi-ms-win-core-file-l1-{1,2}-0.dll/l2-1-0.dll) for console paths (GAME:,G:, andT:):resolve_console_readonly_dir+parse_console_parts(..., create_scratch=false)usingwin32_io_path, so queryingT:\or missing console directories does not create.gta6rt-temporoverlayon disk.ERROR_PATH_NOT_FOUNDforGetDiskFreeSpaceEx*/DRIVE_NO_ROOT_DIRforGetDriveType*,ERROR_FILE_NOT_FOUNDforGetDiskFreeSpace*,ERROR_DIRECTORYfor files,ERROR_INVALID_NAMEfor escaped/reserved paths).GetDriveTypeA/Wchecksis_rootand delegates volume type lookup viaGetVolumePathNameW.runtime/test/file_system_test.cpp.Verification
10.0.26200), MSVC19.44.35228.0(RelWithDebInfo), CMake configure & build forfile_system_testandgta6rt.ctest --test-dir runtime/build -C RelWithDebInfo -R file_system --output-on-failure:1/1 Test #56: file_system ... Passed (1.10 sec).git diff --check: clean.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.