mu3hook/dllmain.c: initialize graphics hook

This commit is contained in:
Felix Anderson 2020-03-23 06:53:48 +00:00
parent 20d5d480fb
commit 7a51533194
3 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,9 @@
#include "board/config.h" #include "board/config.h"
#include "hooklib/config.h"
#include "hooklib/gfx.h"
#include "mu3hook/config.h" #include "mu3hook/config.h"
#include "platform/config.h" #include "platform/config.h"
@ -16,4 +19,5 @@ void mu3_hook_config_load(
platform_config_load(&cfg->platform, filename); platform_config_load(&cfg->platform, filename);
aime_config_load(&cfg->aime, filename); aime_config_load(&cfg->aime, filename);
gfx_config_load(&cfg->gfx, filename);
} }

View File

@ -4,11 +4,14 @@
#include "board/config.h" #include "board/config.h"
#include "hooklib/gfx.h"
#include "platform/config.h" #include "platform/config.h"
struct mu3_hook_config { struct mu3_hook_config {
struct platform_config platform; struct platform_config platform;
struct aime_config aime; struct aime_config aime;
struct gfx_config gfx;
}; };
void mu3_hook_config_load( void mu3_hook_config_load(

View File

@ -33,6 +33,7 @@ static DWORD CALLBACK mu3_pre_startup(void)
/* Hook Win32 APIs */ /* Hook Win32 APIs */
gfx_hook_init(&mu3_hook_cfg.gfx);
serial_hook_init(); serial_hook_init();
unity_hook_init(); unity_hook_init();