From 9f0724dcd25a06c5674d30d045dc485a341253b1 Mon Sep 17 00:00:00 2001 From: salmonik Date: Fri, 6 Nov 2026 16:19:25 +0100 Subject: Hooks: central vtable install with restore support Move vtable patching into hooks.cpp: one call clones the table, validates every slot, records the originals and installs the clone. Installs happen from the setup, game and paint threads, so the bookkeeping is mutex-protected. Client, CInput, IVModelRender, IStudioRender and ISurface all use it, and hooks_restore_all() can now put every interface back (previously impossible). --- src/hl2h.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/hl2h.h') diff --git a/src/hl2h.h b/src/hl2h.h index f1a1ea0..541b31b 100644 --- a/src/hl2h.h +++ b/src/hl2h.h @@ -11,6 +11,7 @@ #include #include +#include "hooks.h" #include "overlay.h" // Shared float-precision constant. More digits than a float can hold are -- cgit v1.2.3