Repository navigation
Conversation
This was referenced Nov 24, 2026
catminou4
reviewed
Nov 24, 2026
catminou4
left a comment
Contributor
There was a problem hiding this comment.
Static review only: apps/Windows-only (CLI/run paths) — nothing compiles on macOS; source review of the diff.
Boot a separated exe/dump layout from the dump: run.rs + loader changes for split install layouts. Windows-only.
run looked for MicrosoftGame.config and mounted the package's G: drive only beside the executable. When the title's exe sits apart from the dump (as with a separate exe folder and data folder), that left TitleID 0 and no package drive; XSystemGetConsoleId then hit the title's breakpoint. Fall back to the configured game_dir for the manifest and mount G: there. On a Ryzen 5800X / RX 7800 XT, main crashed with TitleID 00000000; with this change the run boots as 7952987A, opens appdata0/common/movies/ shaders/... from G: and reaches the GPU/window path. Fixes Marvisak#1553.
The exe of a separated exe/dump layout has no DLLs beside it: Bink2, XboxBvhBuilder, the FidelityFX loader and libHttpClient live with the dump. Searching only the exe folder left all 72 of their imports to the unimplemented policy, and a bound zero handle crashed the title. load_title_dlls/load_title_dll now take search folders in order; run passes the exe folder first, then the configured game_dir. The manifest and G: fallback of the previous commit use the same content directory. With this, the run reports 0 missing imports, loads all four title DLLs and reaches the world-data load (ttdb terrain/maps/interiors).
Calvix2k
force-pushed
the
codex/boot-separated-layout-1553
branch
from
November 25, 2026 00:42
03a7230 to
63fefac
Compare
Contributor
Author
|
Rebased onto main 4118f33 (the only conflict was main's earlier title_dir/startup-archive block; the manifest/G: fallback keeps using it). load_probe + title_dlls 4/4, cargo check/clippy on victory, and cargo xtask policy (182 files) pass. |
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.
Fixes #1553.
Summary
victory runlooked forMicrosoftGame.config, the package'sG:drive and the title's own DLLs only beside the executable. When the title's exe sits apart from the dump (separate exe folder, game data elsewhere), that left TitleID 0, no package drive, and 72 unbound imports; the title then hit its breakpoint inXSystemGetConsoleIdor crashed on a zero handle fromBinkOpenWithOptions.game_diras the content directory when it exists; readMicrosoftGame.configfrom beside the exe first, then from the content directory, and mountG:there.load_title_dlls/load_title_dlltake the title DLL folders in search order;runpasses the exe folder, thengame_dir. The title DLLs and the ones a title loads itself (Bink2,XboxBvhBuilder, the FidelityFX loader and upscaler, libHttpClient) are mapped and initialised as Windows would.No change for the normal layout where the exe is inside the dump.
Verification
On a Ryzen 7 5800X / Radeon RX 7800 XT, Windows 10, with the exe at
E:\GTA6_1.0.21_Cyberleek_exeand the dump atE:\Torrent\GTA6.Xbox.v1.0.2.1-CYBERLEEK:main70564ae: crash0x80000003atXSystemGetConsoleId,TitleID 00000000.title 7952987A; all four title DLLs load (bound …: 0 missingeach,72 title, 0 missingfor the exe);appdata0/common/movies/shaders/anim/data/levels/navmeshes/packs/textures/audio/script.rpfopen fromG:; the run reaches the host D3D12 device, window, frame loop and the world'sttdb_*load.os error 1455), unrelated to this change.cargo build --release -p victory --lockedandcargo xtask policypass. New loader test:a_title_dll_is_found_in_a_later_folder;load_probeandtitle_dllspass. No automated test for the CLI's path setup (needs the user's directory layout).