1
0
mirror of https://gitea.tendokyu.moe/Hay1tsme/segatools.git synced 2024-11-11 20:37:09 +01:00

gfxhook/gfx.c: Remove unused self parameter

This commit is contained in:
Felix 2021-12-21 23:32:33 -05:00
parent 798446ec79
commit cdbf6ad4e2
No known key found for this signature in database
GPG Key ID: 69ADF8AEB6C8B5D1
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);