Skip to content

D3dhook rewrite#2

Merged
Meepster99 merged 1 commit intoMeepster99:masterfrom
AlxFG:d3dhook-meepster
Mar 12, 2026
Merged

D3dhook rewrite#2
Meepster99 merged 1 commit intoMeepster99:masterfrom
AlxFG:d3dhook-meepster

Conversation

@AlxFG
Copy link
Copy Markdown

@AlxFG AlxFG commented Mar 10, 2026

I rewrote d3dhook with minhook which was already being used elsewhere, I mainly wrote this so I could get the new frame limiter working on linux but that doesn't use the d3dhook anymore and I originally wrote the PR at Rhekar#18 but the PR also does enable the frame limiter on linux so it isn't that redundant and I also remove some workarounds caused by wine not being able to use the original hooks.

Not sure if this is the ideal way to do things but it seems to work...

Notes:

  • doing alt-enter in debug builds seems to crash the game because of dearimgui?

@AlxFG AlxFG changed the title D3dhook meepster D3dhook rewrite Mar 10, 2026
@AlxFG AlxFG force-pushed the d3dhook-meepster branch from f96dbea to a96330d Compare March 11, 2026 21:45
This is a rewrite of d3dhook using minhook which was being used in other
places in caster already, this is api compatible with there being a
caveat of it returning different strings but those shouldn't affect it
where it's being used.

The rewrite was done so d3d9 hooking would work on linux and then
allowing for some wine specific workarounds to be removed along with
enabling the frame limiter in linux.

The only problem with this is that it seems to crash on alt-enter on
debug builds since dearimgui seems not to like it, unsure if this is
linux only or a problem that was happening before.
@AlxFG AlxFG force-pushed the d3dhook-meepster branch from f4d65e7 to 933ff38 Compare March 11, 2026 22:13
@Meepster99
Copy link
Copy Markdown
Owner

looks great, ty

@Meepster99 Meepster99 merged commit 25812ed into Meepster99:master Mar 12, 2026
@AlxFG AlxFG mentioned this pull request Mar 13, 2026
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