mirror of
https://github.com/gwdevhub/gMod.git
synced 2026-07-15 15:09:30 +00:00
e762e1b716
MinHook flushes only the 5 patched bytes; under the x86-on-ARM64 emulator (xtajit) that can leave a stale JIT translation of the modified prologue and trap with a non-continuable breakpoint. Flush the whole prologue and the trampoline on install, and the restored prologue on teardown, so the emulator re-translates them. No-op on native x86. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>