run: boot a separated exe/dump layout from the dump #1798
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1798
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1798"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@Calvix2k on GitHub · 2026-11-24 22:46 UTC · original
Calvix2k:codex/boot-separated-layout-1553→main· +117 −29 · 4 files · 5 commits · closed without mergingFixes #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).@Calvix2k on GitHub · 2026-11-25 00:42 UTC · original
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.@Marvisak on GitHub · 2026-11-25 06:24 UTC · original · edited 2026-11-25 22:23 UTC
Automated triage for the maintainers.
Needs rebase. This PR no longer merges cleanly into
main:mainhas moved since the last triage, and the branch now conflicts incrates/victory-loader/tests/load_probe.rs. It will be reviewed again once it is rebased onto currentmain.Previous verdict for this head: merge candidate.
Generated by Claude Code
@catminou4 on GitHub · 2026-11-24 23:03 UTC · original · reviewed
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.
@Calvix2k on GitHub · 2026-11-26 18:56 UTC · original
Closing this in favour of #3336, which keeps the evidence (TitleID 0, 72 unbound imports,
XSystemGetConsoleId, zero handle inBinkOpenWithOptions) without changing the loader signature.Reason: this PR makes
load_title_dllstake a list of title folders, while main has since settled on a singletitle_dirplus acache_dir. The observation is worth keeping; the API change is not mine to force, especially as the more likely users of it can also keep the executable beside the data.If the maintainers pick the search-order option in #3336, the diff here is the shape it would take (17 lines:
dirs.0from&Pathto&[&Path]in four places) and I am happy to redo it against the current signature.Pull request closed