diff --git a/chunihook/dllmain.c b/chunihook/dllmain.c index e0db84c..5350eb9 100644 --- a/chunihook/dllmain.c +++ b/chunihook/dllmain.c @@ -62,7 +62,7 @@ static DWORD CALLBACK chuni_pre_startup(void) /* Hook Win32 APIs */ - gfx_hook_init(&chuni_hook_cfg.gfx, chuni_hook_mod); + gfx_hook_init(&chuni_hook_cfg.gfx); gfx_d3d9_hook_init(&chuni_hook_cfg.gfx, chuni_hook_mod); serial_hook_init(); diff --git a/gfxhook/gfx.c b/gfxhook/gfx.c index 34533af..6c341b9 100644 --- a/gfxhook/gfx.c +++ b/gfxhook/gfx.c @@ -26,7 +26,7 @@ static const struct hook_symbol gfx_hooks[] = { }, }; -void gfx_hook_init(const struct gfx_config *cfg, HINSTANCE self) +void gfx_hook_init(const struct gfx_config *cfg) { assert(cfg != NULL); diff --git a/gfxhook/gfx.h b/gfxhook/gfx.h index 9182371..9a7e27c 100644 --- a/gfxhook/gfx.h +++ b/gfxhook/gfx.h @@ -1,7 +1,5 @@ #pragma once -#include - #include struct gfx_config { @@ -11,4 +9,4 @@ struct gfx_config { int monitor; }; -void gfx_hook_init(const struct gfx_config *cfg, HINSTANCE self); +void gfx_hook_init(const struct gfx_config *cfg); diff --git a/idzhook/dllmain.c b/idzhook/dllmain.c index 80b8c66..fe78b6f 100644 --- a/idzhook/dllmain.c +++ b/idzhook/dllmain.c @@ -67,7 +67,7 @@ static DWORD CALLBACK idz_pre_startup(void) /* Hook Win32 APIs */ serial_hook_init(); - gfx_hook_init(&idz_hook_cfg.gfx, idz_hook_mod); + gfx_hook_init(&idz_hook_cfg.gfx); gfx_d3d11_hook_init(&idz_hook_cfg.gfx, idz_hook_mod); gfx_dxgi_hook_init(&idz_hook_cfg.gfx, idz_hook_mod); zinput_hook_init(&idz_hook_cfg.zinput); diff --git a/mu3hook/dllmain.c b/mu3hook/dllmain.c index fc4b1ab..dd01104 100644 --- a/mu3hook/dllmain.c +++ b/mu3hook/dllmain.c @@ -43,7 +43,7 @@ static DWORD CALLBACK mu3_pre_startup(void) /* Hook Win32 APIs */ dvd_hook_init(&mu3_hook_cfg.dvd, mu3_hook_mod); - gfx_hook_init(&mu3_hook_cfg.gfx, mu3_hook_mod); + gfx_hook_init(&mu3_hook_cfg.gfx); gfx_d3d9_hook_init(&mu3_hook_cfg.gfx, mu3_hook_mod); gfx_d3d11_hook_init(&mu3_hook_cfg.gfx, mu3_hook_mod); gfx_dxgi_hook_init(&mu3_hook_cfg.gfx, mu3_hook_mod);