file_system: list T: scratch from the overlay with no game dir (FS-COLLECT-SCRATCH) #929

Closed
morodirule wants to merge 4 commits from upstream-pr/929 into main
morodirule commented 2026-11-24 15:15:47 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by morodirule on 2026-11-24T15:15:47Z.


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:

  • without a game folder FindFirstFileW(T:*) still lists the scratch root as . and ..
  • listing T: creates the scratch folder in the overlay
    check_no_game_data.py PASS. No game files (synthetic overlay dirs), no GPU. MSVC compile not available on this machine.

AI-assisted.

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5474931176 --> Imported from [ubiquitarianism/leonida](https://github.com/ubiquitarianism/leonida/pull/929). Originally posted by [morodirule](https://github.com/morodirule) on 2026-11-24T15:15:47Z. --- 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: - without a game folder FindFirstFileW(T:\*) still lists the scratch root as . and .. - listing T: creates the scratch folder in the overlay check_no_game_data.py PASS. No game files (synthetic overlay dirs), no GPU. MSVC compile not available on this machine. AI-assisted.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy!929
No description provided.