Separated exe/dump layout: title DLLs beside the exe are not found (TitleID 0, 72 unbound imports) #3336
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#3336
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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-26 18:56 UTC · original
What happens
A dump whose executable does not sit in the same folder as its data (patched or extracted exe in one folder, game data in another) does not boot through
victory run:XSystemGetConsoleId, or crashes on a zero handle fromBinkOpenWithOptions.With the executable beside the data, the same dump boots normally.
Why
victory runlooks forMicrosoftGame.config, the package'sG:drive and the title's own DLLs only beside the executable (victory_loader::load_title_dllstakes onetitle_dirplus acache_dir). In a separated layout, the DLLs the title ships (Bink2,XboxBvhBuilder, the FidelityFX loader/upscaler, libHttpClient) are beside the exe whileMicrosoftGame.configand the content are in the data folder, and neither folder alone has both.Two ways to resolve
load_title_dlls/load_title_dlltake the title folders in search order (&[&Path]) and haverunpass the executable's folder first, thengame_dir; readMicrosoftGame.configfrom beside the exe, else from the content directory, and mountG:there.title_diris the intended design, say in the run docs that the executable must sit beside its data, and fail with a clear message instead of TitleID 0.I have no preference between the two — the second is smaller and keeps the loader API simple, the first supports patched-exe layouts that cannot be moved without breaking other paths.
Evidence
Measured while adapting a build on Windows 10 22H2 with an RX 7800 XT: the separated layout produced the numbers above; moving the executable beside the data made the same dump boot. This was originally opened as #1798, which is being closed in favour of this issue because it changed the loader signature in a shape that conflicts with the current one.