run: stop with a clear message when the title's own DLLs are missing #1611

Manually merged
github merged 1 commit from gh-pr/1611/head into gh-pr/1611/base 2026-11-26 04:38:24 +00:00
Owner

@⁠AgneyaK on GitHub · 2026-11-24 19:45 UTC · original
AgneyaK:fix/missing-package-dlls → main · +81 −0 · 1 files · 1 commits · merged 2026-11-25 00:09 UTC

A package copied without the DLLs that ship beside the executable leaves every import from them unbound, and the title stops at its first call into one: Grand Theft Auto VI 1.0.2.1 at +0x2237178 during System Init (#930, #1553, and one of the causes in #8), with nothing saying why. #12 covers the other known cause of that stop (a missing appdata0.rpf).

Change (apps/victory/src/run.rs, +81)

  • After the title DLLs are mapped, absent_title_dlls names the main image's static imports that must come from the title's folder (title_dll: neither the host policy nor our runtime serves them) but were not mapped from it. Each is named once, case ignored.
  • The list is printed (missing dlls …). When executing with the default trap policy, run stops before any title code with:
    Error: the title's own DLLs are missing: XboxBvhBuilder.dll, amd_fidelityfx_loader_xbox.dll, libHttpClient.GDK.dll, Bink2Scarlett.dll not in <dir>, and neither the host nor VIctory provides them: the package is incomplete; copy every file of the package next to the executable (`--unimplemented zero` runs it anyway)
    
  • With --unimplemented zero the title still runs: stubs were asked for.
  • Two unit tests for the helper.

Tested (Windows 11 26300, retail 1.0.2.1 executable, release build)

case result
folder with only game_scarlett_master.exe, no --execute prints the four DLLs, exit 0
same, --execute the error above, exit 1, no title code run
same, --execute --unimplemented zero prints them and starts the title (which then stops, as before)
complete package, no --execute no message; 88 hle, 427 host, 72 title, 0 missing as on main

cargo clippy --workspace --all-targets --locked -- -D warnings and the --all-features run are clean. cargo test -p victory -p victory-loader passes, cargo xtask policy passes (154 files), and rustfmt --check is clean on the file.

No game data. AI use: Claude Code (Claude Opus 5.5) wrote the change and tests, ran the checks and the title, and drafted this description.

**@⁠AgneyaK** on GitHub · 2026-11-24 19:45 UTC · [original](https://github.com/Marvisak/VIctory/pull/1611) `AgneyaK:fix/missing-package-dlls` → `main` · +81 −0 · 1 files · 1 commits · merged 2026-11-25 00:09 UTC A package copied without the DLLs that ship beside the executable leaves every import from them unbound, and the title stops at its first call into one: Grand Theft Auto VI 1.0.2.1 at `+0x2237178` during System Init (#930, #1553, and one of the causes in #8), with nothing saying why. #12 covers the other known cause of that stop (a missing `appdata0.rpf`). ## Change (`apps/victory/src/run.rs`, +81) - After the title DLLs are mapped, `absent_title_dlls` names the main image's static imports that must come from the title's folder (`title_dll`: neither the host policy nor our runtime serves them) but were not mapped from it. Each is named once, case ignored. - The list is printed (`missing dlls …`). When executing with the default trap policy, `run` stops before any title code with: ``` Error: the title's own DLLs are missing: XboxBvhBuilder.dll, amd_fidelityfx_loader_xbox.dll, libHttpClient.GDK.dll, Bink2Scarlett.dll not in <dir>, and neither the host nor VIctory provides them: the package is incomplete; copy every file of the package next to the executable (`--unimplemented zero` runs it anyway) ``` - With `--unimplemented zero` the title still runs: stubs were asked for. - Two unit tests for the helper. ## Tested (Windows 11 26300, retail 1.0.2.1 executable, release build) | case | result | |---|---| | folder with only `game_scarlett_master.exe`, no `--execute` | prints the four DLLs, exit 0 | | same, `--execute` | the error above, exit 1, no title code run | | same, `--execute --unimplemented zero` | prints them and starts the title (which then stops, as before) | | complete package, no `--execute` | no message; `88 hle, 427 host, 72 title, 0 missing` as on `main` | `cargo clippy --workspace --all-targets --locked -- -D warnings` and the `--all-features` run are clean. `cargo test -p victory -p victory-loader` passes, `cargo xtask policy` passes (154 files), and `rustfmt --check` is clean on the file. No game data. AI use: Claude Code (Claude Opus 5.5) wrote the change and tests, ran the checks and the title, and drafted this description.
A package copied without the DLLs that ship beside the executable leaves
every import from them unbound, and the title stops at its first call into
one: Grand Theft Auto VI 1.0.2.1 at +0x2237178 during System Init (#930,
#1553, #8), with nothing saying why.

After mapping the title DLLs, name the main image's static imports that
must come from the title's folder (neither the host nor our runtime serves
them) but were not mapped from it. Print them; when executing with the
default trap policy, stop before running title code. With
`--unimplemented zero` the title still runs (stubs were asked for).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:38:19 +00:00
github manually merged commit e9cb14ad3e into gh-pr/1611/base 2026-11-26 04:38:24 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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!1611
No description provided.