mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:20:53 +01:00
[PR #929] [CLOSED] file_system: list T: scratch from the overlay with no game dir (FS-COLLECT-SCRATCH) #966
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#966
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/929
Author: @morodirule
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:fix/fs-collect-scratch📝 Commits (4)
93511b1shims: guard SEH __try behind _MSC_VER for MinGW (MINGW-SEH-GUARD)7e47b21dstorage: reject wrapped MinGW buffer ranges before VirtualQuery85c78e2dstorage: let MinGW guarded_move reach guard pages like MSVC5a0d521file_system: list T: scratch from the overlay with no game dir (FS-COLLECT-SCRATCH)📊 Changes
3 files changed (+74 additions, -2 deletions)
View changed files
📝
runtime/shims/dstorage.cpp(+47 -0)📝
runtime/shims/file_system.cpp(+15 -2)📝
runtime/test/file_system_test.cpp(+12 -0)📄 Description
Claimed in the coordination issue as: FS-COLLECT-SCRATCH
Depends on: #903 (the test binary needs the MinGW SEH guard to link).
Carries abnalstlll-byte's finding: collect() failed T: scratch listings with ERROR_PATH_NOT_FOUND when --game-dir was unset (gated on r.game.empty()), and probed the package root on every T: listing. Scratch targets (parts starting at .gta6rt-temp) now gate on r.overlay.empty() instead and skip add_root(r.game).
Tests: built file_system_test with x86_64-w64-mingw32-g++ and ran it under Wine 11.22 on Linux: 496 checks, 11 failures — the identical failure set as the pre-change baseline binary (494 checks, same 11: MAXIMUM_ALLOWED opens, long-path markers, host ReadFile page-commit semantics — all Wine-environment behavior, none touched by this change). The 2 new regression checks pass:
check_no_game_data.py PASS. No game files (synthetic overlay dirs), no GPU. MSVC compile not available on this machine.
AI-assisted.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.