Skip to content

run: boot a separated exe/dump layout from the dump - #1798

Open
Calvix2k wants to merge 2 commits into
Marvisak:mainfrom
Calvix2k:codex/boot-separated-layout-1553
Open

Calvix2k wants to merge 2 commits into
Marvisak:mainfrom
Calvix2k:codex/boot-separated-layout-1553

Conversation

@Calvix2k

@Calvix2k Calvix2k commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #1553.

Summary

victory run looked for MicrosoftGame.config, the package's G: 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 in XSystemGetConsoleId or crashed on a zero handle from BinkOpenWithOptions.

  • Use the configured game_dir as the content directory when it exists; read MicrosoftGame.config from beside the exe first, then from the content directory, and mount G: there.
  • load_title_dlls/load_title_dll take the title DLL folders in search order; run passes the exe folder, then game_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_exe and the dump at E:\Torrent\GTA6.Xbox.v1.0.2.1-CYBERLEEK:

  • main 70564ae: crash 0x80000003 at XSystemGetConsoleId, TitleID 00000000.
  • with this branch: title 7952987A; all four title DLLs load (bound …: 0 missing each, 72 title, 0 missing for the exe); appdata0/common/movies/shaders/anim/data/levels/navmeshes/packs/textures/audio/script.rpf open from G:; the run reaches the host D3D12 device, window, frame loop and the world's ttdb_* load.
  • The Agility SDK runtime (PR Windows 10: load the D3D12 Agility SDK runtime for shader model 6.6 #175) then removes the Windows 10 root-signature refusals; the next stop is a commit limit on 32 GB (os error 1455), unrelated to this change.

cargo build --release -p victory --locked and cargo xtask policy pass. New loader test: a_title_dll_is_found_in_a_later_folder; load_probe and title_dlls pass. No automated test for the CLI's path setup (needs the user's directory layout).

@Calvix2k Calvix2k changed the title HLE: boot a separated exe/dump layout from the dump's manifest run: boot a separated exe/dump layout from the dump Nov 24, 2026

@catminou4 catminou4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Calvix2k force-pushed the codex/boot-separated-layout-1553 branch from 03a7230 to 63fefac Compare November 25, 2026 00:42
@Calvix2k

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Early-boot crash at XSystemGetConsoleId during System Init (TitleID 00000000)

2 participants