DX11: Present hook fallback, init guards, and safer offset usage#5
Merged
JohnnyTheCoder1 merged 8 commits intomasterfrom Oct 27, 2025
Merged
DX11: Present hook fallback, init guards, and safer offset usage#5JohnnyTheCoder1 merged 8 commits intomasterfrom
JohnnyTheCoder1 merged 8 commits intomasterfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.