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

Closed
leonida/mandy
morodirule wants to merge 0 commits from fix/fs-collect-scratch into main

Pull request closed

This pull request cannot be reopened because the branch was deleted.

morodirule commented 2026-11-24 15:15:47 +00:00

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.

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.
Sign in to join this conversation.
No description provided.