Repository navigation
file_system: G:\ is the package and T:\ a scratch folder (RT-218) - #3511
undeadhuman37 wants to merge 1 commit into
Conversation
Only GAME: was a console path, so a title's G:\x or T:\x went to the host's real drives: with a host G: present it opened the wrong file and a write landed outside the overlay. Five other Xbox Series layers map G:\ to the package and four map T:\ to scratch (@kotorvr's comparison in ItsNotRexed#3232). - G:\ (either separator, any case) maps exactly like GAME:. - T:\ is <overlay>\.gta6rt-temp: one folder that is both its "package" and its overlay, so it has no package files, never copies up and never writes deletion markers. GAME:\ does not list it. - A G:/T: path inside the host's own game or overlay folder (a --game-dir on drive G:) stays a host path, as both drives do before configure(); the drive-relative G:x is always a host path. - A move between T:\ and G:\/GAME:\ is ERROR_NOT_SAME_DEVICE; .. and drive components are refused as for GAME:. Which form GTA VI uses is still open until the executable is read; noted in docs/runtime_imports.md. Tests: file_system_test 148/148 (16 new checks; 10 of them fail on main), ctest 50/50 passed (5 skipped for missing game files, as on main), on Windows 11 with MSVC 14.44. No game files, no GPU. AI-assisted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Compared with my #3485 (now closed in favor of this). Your design is better: the dedicated |
|
Tested
Private build dir; |
|
Tested
Not checked: a PC that has a real |
|
Windows + GPU check: AMD Radeon RX 9070 (RDNA4), Windows 11, MSVC Release, Vulkan SDK 1.4.363. Tested head 5f61a05 merged onto AI-assisted (Claude Code); runs on my machine. |
|
Tested 5f61a05 (on its base
AI-assisted (Claude Code). |
|
Heads-up: |
|
Tested 5f61a05 (merged onto main f847748) on NVIDIA GeForce RTX 4060 Ti, driver 610.88 (32.0.16.1088), Windows 11 26200, MSVC 14.51.36231 (VS 2026), Vulkan SDK 1.4.363.0: pass
AI-assisted (Claude). |
|
This looks superseded: main's 4c52ce2 landed the same RT-218 fix (G:\ as the package, T:\ as .gta6rt-temp, host-folder paths staying host paths) with its own file_system tests, including the cross-volume move refusal and the T:.. escape case — all present on current main (verified). The head now conflicts structurally with that refactor (console_drive()/internal_dir() helpers in file_system.cpp, its test file, and the docs table), so a rebase would mostly delete this PR's implementation. Closing in favour of the main commit seems right; thanks for the patch — it is effectively what main shipped. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run). |
Item: RT-218 (claim: #3381 (comment)), from @kotorvr's finding in #3232.
Only
GAME:was a console path (runtime/shims/file_system.cpp:95), so a title'sG:\xorT:\xwent to the host's real drives: with a hostG:present it opened the wrong file and a write landed outside the overlay; without one every open failed.G:\(either separator, any case) maps exactly likeGAME:: reads prefer the overlay, writes go to the overlay, the package stays read-only.T:\is<overlay>\.gta6rt-temp, a writable scratch folder that holds no package files: it is both its own "package" and overlay, so nothing is copied up and no deletion markers are written.GAME:\does not list it.G:/T:path inside the host's own game or overlay folder (a--game-diron drive G:, or a path the title got back fromGetModuleFileName) stays a host path, as both drives do beforeconfigure(). The drive-relativeG:xis always a host path.T:\andG:\/GAME:\fails withERROR_NOT_SAME_DEVICE;..and drive components are refused as forGAME:.Which form GTA VI itself uses is still open until the executable is read (the package's DLLs name neither); that's noted in
docs/runtime_imports.md.Tested on Windows 11 (26200), MSVC 14.44, RTX 4070 SUPER (no GPU needed for these):
file_system_test: 148/148, 16 new checks; withmain'sfile_system.cpp, 10 of them failctest --test-dir runtime/build: 50/50 passed (5 skipped for missing game files, as onmain)No game files. AI-assisted.
🤖 Generated with Claude Code