From 7a51533194b0829128e2f916fb8c247e24427120 Mon Sep 17 00:00:00 2001 From: Matt Bilker Date: Mon, 23 Mar 2020 06:53:48 +0000 Subject: [PATCH] mu3hook/dllmain.c: initialize graphics hook --- mu3hook/config.c | 4 ++++ mu3hook/config.h | 3 +++ mu3hook/dllmain.c | 1 + 3 files changed, 8 insertions(+) diff --git a/mu3hook/config.c b/mu3hook/config.c index c2391c8..c611131 100644 --- a/mu3hook/config.c +++ b/mu3hook/config.c @@ -3,6 +3,9 @@ #include "board/config.h" +#include "hooklib/config.h" +#include "hooklib/gfx.h" + #include "mu3hook/config.h" #include "platform/config.h" @@ -16,4 +19,5 @@ void mu3_hook_config_load( platform_config_load(&cfg->platform, filename); aime_config_load(&cfg->aime, filename); + gfx_config_load(&cfg->gfx, filename); } diff --git a/mu3hook/config.h b/mu3hook/config.h index cd1def4..e6ef4df 100644 --- a/mu3hook/config.h +++ b/mu3hook/config.h @@ -4,11 +4,14 @@ #include "board/config.h" +#include "hooklib/gfx.h" + #include "platform/config.h" struct mu3_hook_config { struct platform_config platform; struct aime_config aime; + struct gfx_config gfx; }; void mu3_hook_config_load( diff --git a/mu3hook/dllmain.c b/mu3hook/dllmain.c index cc6a980..bf24bfd 100644 --- a/mu3hook/dllmain.c +++ b/mu3hook/dllmain.c @@ -33,6 +33,7 @@ static DWORD CALLBACK mu3_pre_startup(void) /* Hook Win32 APIs */ + gfx_hook_init(&mu3_hook_cfg.gfx); serial_hook_init(); unity_hook_init();