Separated exe/dump layout: title DLLs beside the exe are not found (TitleID 0, 72 unbound imports) #3336

Open
opened 2026-11-26 18:58:11 +00:00 by github-bot · 0 comments
Owner

@⁠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:

  • the title sees TitleID 0 and no package drive,
  • 72 imports stay unbound,
  • the title stops in XSystemGetConsoleId, or crashes on a zero handle from BinkOpenWithOptions.

With the executable beside the data, the same dump boots normally.

Why

victory run looks for MicrosoftGame.config, the package's G: drive and the title's own DLLs only beside the executable (victory_loader::load_title_dlls takes one title_dir plus a cache_dir). In a separated layout, the DLLs the title ships (Bink2, XboxBvhBuilder, the FidelityFX loader/upscaler, libHttpClient) are beside the exe while MicrosoftGame.config and the content are in the data folder, and neither folder alone has both.

Two ways to resolve

  1. Search order. Let load_title_dlls/load_title_dll take the title folders in search order (&[&Path]) and have run pass the executable's folder first, then game_dir; read MicrosoftGame.config from beside the exe, else from the content directory, and mount G: there.
  2. Document it. If a single title_dir is 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.

**@⁠Calvix2k** on GitHub · 2026-11-26 18:56 UTC · [original](https://github.com/Marvisak/VIctory/issues/3336) ## 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`: - the title sees **TitleID 0** and no package drive, - **72 imports stay unbound**, - the title stops in `XSystemGetConsoleId`, or crashes on a zero handle from `BinkOpenWithOptions`. With the executable beside the data, the same dump boots normally. ## Why `victory run` looks for `MicrosoftGame.config`, the package's `G:` drive and the title's own DLLs **only beside the executable** (`victory_loader::load_title_dlls` takes one `title_dir` plus a `cache_dir`). In a separated layout, the DLLs the title ships (`Bink2`, `XboxBvhBuilder`, the FidelityFX loader/upscaler, libHttpClient) are beside the exe while `MicrosoftGame.config` and the content are in the data folder, and neither folder alone has both. ## Two ways to resolve 1. **Search order.** Let `load_title_dlls`/`load_title_dll` take the title folders in search order (`&[&Path]`) and have `run` pass the executable's folder first, then `game_dir`; read `MicrosoftGame.config` from beside the exe, else from the content directory, and mount `G:` there. 2. **Document it.** If a single `title_dir` is 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 18:58:11 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory#3336
No description provided.