Skip to content

U-6: reject missing required title DLL dependencies before execution - #49

Merged
ShinniUwU merged 4 commits into
ProjectLeonidaL:mainfrom
JohnReedV:codex/u6-transitive-dll-preflight
Nov 26, 2026
Merged

ShinniUwU merged 4 commits into
ProjectLeonidaL:mainfrom
JohnReedV:codex/u6-transitive-dll-preflight

Conversation

@JohnReedV

@JohnReedV JohnReedV commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What changed

Completes U-6. With EXE → A.dll → missing B.dll, startup previously reached DLL initialization before explaining the incomplete installation. It now follows required static dependencies, reports each missing DLL once, and refuses execution before binding or title initialization.

The walk handles cycles, shared dependencies and case aliases, and excludes host/HLE modules and delay-only paths. Inspection and the explicit --unimplemented zero override retain their behavior. Dynamic LoadLibrary handling is outside this startup change.

How it was tested

  • Not run in game: game assets were unavailable. Ten public CLI tests generate their own PE executables and DLLs and exercise the real loader. This is a startup reliability change; no gameplay or frame-rate improvement is claimed.

The regression DLL calls ExitProcess(73) if its initializer runs. Baseline f4c0707 reached that sentinel under Wine; the fixed executable reports the missing dependency with exit 1 before binding. Positive controls call through a complete DLL chain and require both DLLs' initialization flags. Other cases cover deeper missing imports, cycles, case aliases, shared dependencies, missing and present delay-only DLLs, mixed static/delay reachability, inspection, zero policy and host/HLE imports.

Validated head 59d7ca16681e0bbbff4c07b0d03d0fac314e5770, after integrating main a141614 (including #48):

  • Windows release crossbuilds and all ten startup tests passed in both default and diagnostics builds under Proton 11's Wine 11.0, Pop!_OS 22.04, Intel Core i9-14900KS, Rust 1.98.1.
  • Native Windows validation passed the same ten default and ten diagnostics tests with zero ignored cases and all execution markers present. Its source differs from the PR only by the validation workflow.
  • The native workflow reproduced the intended failure exactly once on baseline a141614, using the same final test fixture and unchanged baseline production source: the initializer exited with 73. The patched test instead exits with 1 and the intended missing-file diagnostic before binding or initialization.
  • PR CI passed 652 tests with zero failures and 18 ignored, all nine documentation-test targets, both Clippy configurations, and the repository asset-policy test.

Checks run on this branch:

  • cargo test --workspace --locked: no new failure compared with main
  • cargo clippy --workspace --all-targets --locked -- -D warnings
  • cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
  • cargo xtask policy

AI

  • AI-assisted implementation, generated regression fixtures, review and validation.

@JohnReedV
JohnReedV marked this pull request as ready for review November 26, 2026 20:15
@ShinniUwU
ShinniUwU merged commit 1c5bd30 into ProjectLeonidaL:main Nov 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants