Repository navigation
Conversation
catminou4
left a comment
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.
03a7230 to
63fefac
Compare
|
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. |
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).
b380544 to
56d4971
Compare
|
Automated triage for the maintainers. Needs rebase. This PR no longer merges cleanly into Previous verdict for this head: merge candidate. Generated by Claude Code |
…ifest `content_dir` used the configured `game_dir` whenever one was set, so running any exe mounted `G:` on another title's package and searched its DLLs second. Use the configured directory only when the exe's own folder is not a package (no manifest beside it), and test both layouts.
`check_startup_archive` ran on the exe's folder before `content_dir` was computed, so a separated layout still stopped at "Cannot read startup archive" when the archive sits in the dump. Compute the package folder first and check the archive there.
The failed run crashed inside the victory-gpu test binary with an access violation before its first test printed; this branch only touches apps/victory/src/run.rs.
|
Closing this in favour of #3336, which keeps the evidence (TitleID 0, 72 unbound imports, Reason: this PR makes If the maintainers pick the search-order option in #3336, the diff here is the shape it would take (17 lines: |
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).