file_system: add GetDiskFreeSpaceA/W and GetDiskFreeSpaceExA/W for console roots (RT-FS-DISK-FREE-SPACE) #2227
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2227
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/fs-disk-free-space"
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 successfully merged and closed
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)Red/green: tests/test_fs_disk_free_space.py fails on main (1 failed) and passes with this PR (1 passed).
Runtime batch of 20 PRs tested by OreoFR (full build, ctest without the game, Python suite, translator): same results as main 09c153948, RTX 4070 Laptop / Windows 11.
AI-assisted (Claude Code, Claude Opus 5.5)
Verified by OreoFR
09c153948+ PR head1fb1c5e27; integration package 1 of 6 (20 PRs, merged without conflict)AI-assisted (Claude Code, Claude Opus 5.5).