Repository navigation
xgameruntime: keep persistent local storage out of GAME:\ (RT-274) - #4327
Conversation
|
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, 76 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. |
|
Tested ee658a9 on Windows 11 (MSVC BuildTools 2022, Ninja, RelWithDebInfo, -j 4; RTX 5080 driver 616.92 and AMD Radeon iGPU driver 26.10.1 present but not used, these tests are CPU-only): AI-assisted. |
|
Tested ee658a9 on NVIDIA GeForce RTX 4090 (driver 32.0.16.2101), Windows 11, MSVC 14.51: pass. I built the branch with CMake and Ninja, RelWithDebInfo. The build has no Vulkan SDK, thus no validation layers.
Negative control: with No game files. An AI tool helped me to run the tests. |
|
One pre-existing follow-up found while checking A temporary synthetic probe opened and read the storage file through Reported as a separate finding in the coordination issue, with the measured cases distinguished from the untested implications. This predates the PR for the older reserved folders; the current change still fixes the ordinary Our CPU-only Windows 11 26200.9974, MSVC 14.51, Ninja RelWithDebInfo; installed RTX 5070 Ti / NVIDIA 617.14 (not used by these CPU probes). No game files. AI-assisted: Claude Code ran the tests and probes; Codex checked the logs, unchanged head and current discussion and prepared this note. |
|
Tested ee658a9 on NVIDIA GeForce RTX 5070, driver 621.01, Windows 11 Pro 26300, MSVC 14.44 RelWithDebInfo (
Code read: the folder is hidden from listings only. Baseline on No game files. AI-assisted (Claude Code). |
|
APPROVE. The path mapping is untouched: storage moves under Nits: The full pytest run's 11 failures are all outside this PR and reproduce on untouched AI-assisted review, no game files, no GPU. |
Signed-off-by: Maxime Mansiet <AirKyzzZ@users.noreply.github.com>
ee658a9 to
2521a68
Compare
|
Rebased onto round 43 ( |
|
Tested 2521a68 on Windows 11 (MSVC BuildTools 2022, Ninja, RelWithDebInfo, -j 4; no Vulkan validation layer installed), one GPU at a time, device line confirmed: AMD Radeon RDNA2 iGPU (driver 26.10.1) and NVIDIA RTX 5080 (driver 616.92). Ran AI-assisted. |
Kam471
left a comment
There was a problem hiding this comment.
Built and ran xgameruntime_test at 2521a683b on Windows 11: xgameruntime_test: OK (131 checks), exit 0. git diff --check clean.
Persistent local storage is now kept out of GAME:\ (the shim asks for a writable location instead), and the added cases cover the path choice and the existing module checks. The two fopen C4996 warnings are the test's existing style, not new behaviour. No blocking issue.
sds-228
left a comment
There was a problem hiding this comment.
Code review of 2521a68: still clean at the new head. Diff review only (no local C++ toolchain): persistent storage now uses a hidden overlay folder excluded from GAME: listings, and the added runtime test checks both listing and deletion isolation. Docs and expectations match.
AI-assisted (OpenCode).
Claimed in the coordination issue as: RT-274 (claim)
What and why
Persistent local storage lived at
<overlay>\persistent. The overlay root is what a title sees asGAME:\, andinternal_dir()only hides the.gta6rt-*folders, so the title could see its own storage through the package. After writing into the folderXPersistentLocalStorageGetPathreturns,FindFirstFileW(GAME:\persistent\*)listed those files, a package file atGAME:\persistent\<name>read back as the storage copy, andDeleteFileWon that path deleted the storage file.The folder is now
<overlay>\.gta6rt-persistent. The name is declared once asrt::fs::kPersistentStorageDirinfile_system.h, sincexgameruntime.cppneeds it too, andinternal_dir()hides it like the other three. The xgameruntime comment anddocs/runtime_imports.mdsay so.Not handled: someone who already ran a build with the old path keeps a visible
<overlay>\persistentfolder. Nothing migrates it.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:xgameruntime_test: 109/109. The new check writes into the storage folder, then checks through the file shims thatGAME:\doesn't list it and that a package file of the same relative name keeps its own bytes. Onmain4 of the 109 fail.main.No game files. AI-assisted (Claude Code).
Checklist
docs/design.md, with how it was confirmed. (no translator change)