gfxhook/gfx.c: Remove unused self parameter

This commit is contained in:
Felix Anderson 2021-12-21 23:32:33 -05:00 committed by Hay1tsme
parent b6274f71a5
commit 7c90a79f69
5 changed files with 5 additions and 7 deletions

View File

@ -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();

View File

@ -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);

View File

@ -1,7 +1,5 @@
#pragma once
#include <windows.h>
#include <stdbool.h>
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);

View File

@ -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);

View File

@ -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);