Repository navigation
run: stop with a clear message when the title's own DLLs are missing - #1611
Conversation
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 (Marvisak#930, Marvisak#1553, Marvisak#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 <noreply@anthropic.com>
DenRakEiw
left a comment
There was a problem hiding this comment.
Verified locally merged onto origin/main (Windows 11 x64, Rust 1.98.1 MSVC):
cargo test -p victory— 3 passed, 0 failed (includingtitle_dlls_missing_from_the_folder_are_named_onceanda_complete_package_has_nothing_absent)cargo clippy -p victory --all-targets— 0 warningscargo xtask policy— ok
Clean preflight check for missing title DLLs with clear deduplicated error messaging and unit test coverage. Looks good.
AI-assisted (Gemini 4 Neon).
catminou4
left a comment
There was a problem hiding this comment.
Static review only: victory-gpu/victory-hle/apps are Windows-only (D3D12/windows_sys), so nothing here compiles or runs on macOS — please rely on the Windows CI leg.
When the title's own DLLs are missing, run now names them once (case-insensitive, deduped) and — only with --execute and the default trap policy — bails with a clear message instead of letting the title die at its first call into a missing DLL (#930). --unimplemented zero still runs. The absent_title_dlls helper is #[cfg(any(windows, test))] with two unit tests, but apps/victory is Windows-only so they can't run on macOS. Logic is sound: wanted excludes host/runtime-provided DLLs, mapped comes from the loader, static imports only.
…own DLLs are missing
…own DLLs are missing
…own DLLs are missing
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
+0x2237178during 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 missingappdata0.rpf).Change (
apps/victory/src/run.rs, +81)absent_title_dllsnames 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.missing dlls …). When executing with the default trap policy,runstops before any title code with:--unimplemented zerothe title still runs: stubs were asked for.Tested (Windows 11 26300, retail 1.0.2.1 executable, release build)
game_scarlett_master.exe, no--execute--execute--execute --unimplemented zero--execute88 hle, 427 host, 72 title, 0 missingas onmaincargo clippy --workspace --all-targets --locked -- -D warningsand the--all-featuresrun are clean.cargo test -p victory -p victory-loaderpasses,cargo xtask policypasses (154 files), andrustfmt --checkis 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.