Skip to content

DX11: Present hook fallback, init guards, and safer offset usage#5

Merged
JohnnyTheCoder1 merged 8 commits intomasterfrom
fix/dx11-present-capture
Oct 27, 2025
Merged

DX11: Present hook fallback, init guards, and safer offset usage#5
JohnnyTheCoder1 merged 8 commits intomasterfrom
fix/dx11-present-capture

Conversation

@JohnnyTheCoder1
Copy link
Copy Markdown
Owner

This PR improves initialization robustness for Alien: Isolation Cinematic Tools.\n\nKey changes:\n- Add DX11 Present hook (MinHook) bootstrapped via dummy device to capture ID3D11Device/Context/SwapChain when the hardcoded D3D singleton is null or unreadable.\n- Treat OFFSET_D3D as best-effort; fall back to Present hook capture with clear logs.\n- Split hook setup: core hook init (Present) vs InstallGameHooks() for game-specific hooks, reducing early-init crashes.\n- Add readiness guards: UI/Renderer only used after resources are created (IsReady checks), and safer SetCursorPos handling.\n- More explicit logging for version mismatches and initialization timing.\n\nExpected outcome:\n- Injection no longer fails with "D3D singleton pointer stayed null"; instead tools wait for the first Present and proceed.\n- CI should build this branch; no public API signatures changed for shipped DLLs.\n\nIf CI flags issues, I'll iterate quickly.

@JohnnyTheCoder1 JohnnyTheCoder1 merged commit a9a36b8 into master Oct 27, 2025
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.

1 participant