Repository navigation
file_system: T:\ is a drive root, a folder from the start and never removed or moved (RT-275) - #4328
Conversation
Signed-off-by: Maxime Mansiet <AirKyzzZ@users.noreply.github.com>
Kam471
left a comment
There was a problem hiding this comment.
Built and ran file_system_test at 2036d725 on Windows 11: 157 checks, 0 failures, exit 0.
T:\ is treated as its own drive root (always a folder, never removed or moved), T:\.. cannot climb into the package, GAME: does not see the scratch file, and G:/T: stay host drives when no folder is configured. All 157 checks pass. No blocking issue.
|
Windows + GPU check: NVIDIA GeForce RTX 5080 (driver 621.01) + AMD Radeon 610M iGPU (driver 32.0.13018.6), Windows 11, MSVC (VS BuildTools 18) + Ninja, RelWithDebInfo, Vulkan SDK headers fetched. Tested head Build: clean, 11 targets. Targeted,
Full suite (
The PR's unstable CI state did not reproduce locally. Synthetic fixtures only, no game files. AI-assisted (opencode); runs on my machine. |
|
PASS, with one low-severity issue.
The issue: Test nit: Approve with the drive distinction fixed. AI-assisted review, no game files, no GPU. |
… is not refused as one Signed-off-by: Maxime Mansiet <AirKyzzZ@users.noreply.github.com>
|
@tupacfan04 thanks, you're right. Fixed in On the RTX 2060 box (Windows 10, clang-cl): with the new test file, Whether a title should reach the internal folders through |
|
Tested 844e650 (merged onto main 03b09a0) on RTX 3060 (Ampere), driver 617.14, Windows 11, MSVC 14.44, RelWithDebInfo: pass
AI-assisted: this check was run and written with Claude Code (Anthropic) on my machine; the numbers above are its unedited output. |
Claimed in the coordination issue as: RT-275 (claim)
What and why
T:maps to<overlay>\.gta6rt-temp, but the shims only treated an empty path (GAME:\) as a drive root. On a fresh overlay:GetFileAttributesW(T:\)andFindFirstFileW(T:\*)failed with 2.CreateDirectoryW(T:\x)andCopyFileW(..., T:\x)failed with 3.Both kept failing until something had CreateFile'd under
T:. Also,RemoveDirectoryW(T:\)deleted the scratch root andMoveFileW(T:\, GAME:\moved)moved it, whereGAME:\refuses both withERROR_ACCESS_DENIED.parse_consolecreates<overlay>\.gta6rt-tempfor anyT:path and keeps the caller's last error. Without that, the folder creation leaked 183 into calls that then succeed, and a test checks for it.drive_root()makesRemoveDirectoryWandMoveFileExWrefuse both roots with 5.docs/runtime_imports.mddocuments it next to RT-218.Worth discussing: even a plain read of a
T:path now creates the folder. I chose that because it keepsT:\a folder for every call without a special case inview(). Happy to move it toview()if you'd rather have reads with no side effects.Not changed: a missing
T:\xstill returns 3 rather than 2, becauseread_targetfalls back to the package folder. It's a separate question. #3651 and #3511 touch the same file but different hunks.Tested
Windows 10 22H2 (19045), RTX 2060 / NVIDIA 566.14, Ryzen 5 2600X, clang-cl 23.1.6 + lld-link, Windows SDK 10.0.26100, Ninja, on
03b09a08:file_system_test: 157/157. The new cases each run on their own fresh overlay before anyT:write. Onmain6 of them fail.main.No game files. AI-assisted (Claude Code).
Checklist
docs/design.md, with how it was confirmed. (no translator change)