run: stop with a clear message when the title's own DLLs are missing #1610
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1611"
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?
Imported from Marvisak/VIctory. Originally posted by AgneyaK on 2026-11-24T19:45:13Z.
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.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T19:56:50Z.
Review: APPROVED
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— okClean preflight check for missing title DLLs with clear deduplicated error messaging and unit test coverage. Looks good.
AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-24T20:06:18Z.
Review: COMMENTED
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,
runnow names them once (case-insensitive, deduped) and — only with--executeand 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 zerostill runs. Theabsent_title_dllshelper is#[cfg(any(windows, test))]with two unit tests, butapps/victoryis Windows-only so they can't run on macOS. Logic is sound:wantedexcludes host/runtime-provided DLLs,mappedcomes from the loader, static imports only.upstream-sync referenced this pull request2026-11-25 02:06:20 +00:00