mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:55:52 +01:00
[PR #2227] file_system: add GetDiskFreeSpaceA/W and GetDiskFreeSpaceExA/W for console roots (RT-FS-DISK-FREE-SPACE) #2231
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#2231
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/2227
Author: @matinsanei
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:feat/fs-disk-free-space📝 Commits (2)
fbafd7cfile_system: add GetDiskFreeSpaceA/W and GetDiskFreeSpaceExA/W for console roots (RT-FS-DISK-FREE-SPACE)1fb1c5efile_system: validate requested directory against mounted console view📊 Changes
2 files changed (+162 additions, -0 deletions)
View changed files
📝
runtime/shims/file_system.cpp(+133 -0)➕
tests/test_fs_disk_free_space.py(+29 -0)📄 Description
Claimed in the coordination issue as: RT-FS-DISK-FREE-SPACE (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7185888432)
What and why
Adds shims for
GetDiskFreeSpaceA,GetDiskFreeSpaceW,GetDiskFreeSpaceExA, andGetDiskFreeSpaceExWtoruntime/shims/file_system.cpp:GAME:\,G:\,T:\) to the mapped host directories (r.game,r.overlay,r.scratch) before calling the host API.GetDiskFreeSpace[Ex]W.kernel32.dll,kernelbase.dll, and API set forwards.tests/test_fs_disk_free_space.py.Tested
python -I tests/test_fs_disk_free_space.py: Passed (1/1).python -I tests/test_text_write_line_endings.py: Passed (3/3).python3 scripts/check_no_game_data.py: Clean (0 errors).GPUs tested: n/a (file system shim)
AI-assisted: yes (Antigravity)
Checklist
mainand merges cleanlydocs/design.md, with how it was confirmed. (n/a)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.