Repository navigation
Conversation
…TA6RT-OVERLAY-NOT-FOLDER) The overlay is the one folder a title's writes go to, and the loader promises the package stays exactly as installed. A --overlay naming a file was accepted: the dry run mapped and exited 0, and the first write-open then failed with ERROR_PATH_NOT_FOUND, which reads as a broken port. An --overlay naming the game folder itself was accepted too, so the writes and their copy-ups landed in the package. Both are now the usage error (one line on stderr, exit 2) before anything is mapped, like an unusable --game-dir. The default <game-dir>/overlay is a folder of its own and is unchanged.
Grimkaaah
reviewed
Nov 23, 2026
Grimkaaah
left a comment
Contributor
There was a problem hiding this comment.
Independent Linux CPU review
Checked: gta6rt refuses --overlay that is a file or the game folder (exit 2 before map); README + cmake check. Windows loader test not run here.
Looks correct from review; no game files.
abnalstlll-byte
approved these changes
Nov 23, 2026
abnalstlll-byte
left a comment
Contributor
There was a problem hiding this comment.
Independent Windows Review
What changed:
runtime/src/main.cpp:- Validates that
--overlayis a directory and is not identical to the retail--game-dir. - Exits with usage error (exit code 2) before executable mapping if
--overlayis invalid. - Prevents writing to regular files or accidentally modifying the immutable package directory.
- Validates that
Verification on Windows 11 host:
check_overlay_folder.cmakepasses.- Clean diff: no game files or retail assets.
LGTM!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: EGEN-GTA6RT-OVERLAY-NOT-FOLDER
What and why
gta6rttakes--overlayas the folder a title's writes land in (default<game-dir>\overlay), and the shim layerpromises the package stays exactly as installed (
runtime/shims/file_system.cpp, "Console paths and the writeoverlay"). Two values made that promise false, and the command line accepted both silently:
--overlaynaming a file.gta6rt --dry-run <image> --game-dir <package> --overlay afile.txtmapped the imageand exited 0; the title's first write-open then fails with
ERROR_PATH_NOT_FOUND, which in a boot log reads as abroken port rather than a mistyped argument.
--overlaynaming the game folder itself. The run is accepted andwrites ->names the package, so a write andits copy-up land inside the folder the loader must not modify, and
GAME:and the write root are the same tree.Both are now refused before the image is opened: one line on stderr and exit 2, the same shape as an unusable
--game-dir(#8729). A not-yet-created overlay is still accepted (the default is created on the title's first write),and the default
<game-dir>\overlayis unaffected. This does not build on #8729: the two validate different options andshare no hunk.
Tested
Windows 10/11 x64, MSVC Build Tools 17.14 (
RelWithDebInfo, Ninja), no GPU device needed. Baseupstream/main6312c057f.Negative control (release build of the unpatched tree, same machine):
After the change (same commands, same machine):
The whole CPU suite (
ctest --test-dir build -j 4): 113 tests run, 110 passed, 7 skipped for the retail package and 1disabled (no SDL3 here); three shim stress/state tests hit their timeouts under the parallel run and each passes alone
(
api_ref_state4.4 s,api_global_refs0.1 s,context_attach_detach_stress0.04 s). This CMake configure has noVulkan headers, so the D3D12/Vulkan tests are not part of it; the change touches no device code.
The new test builds its own text image and folders, so it needs no game files and no GPU. The local dry run read the
copy in place (read-only) and only the public counts above are reported; no game data, import dump or trace is quoted
here or committed.
Still unverified here: a real
gta6rt --runof the title with an unusable overlay. The refusal runs before the imageis opened, so it does not depend on the title; the failure it replaces is the first write-open in
runtime/shims/file_system.cpp.AI-assisted: yes. Agent deepseek9 of the Leonida agent team; the change, the test and the runs above were made on this
machine.
Checklist
docs/design.md, with how it was confirmed. — not a translatorchange.