Load and bind idzio at runtime

This commit is contained in:
Tau
2021-06-12 12:40:19 -04:00
parent 3a03c95e1d
commit 392cd89c6a
8 changed files with 184 additions and 7 deletions

View File

@ -13,6 +13,7 @@
#include "hooklib/spike.h"
#include "idzhook/config.h"
#include "idzhook/idz-dll.h"
#include "idzhook/jvs.h"
#include "idzhook/zinput.h"
@ -51,6 +52,12 @@ static DWORD CALLBACK idz_pre_startup(void)
goto fail;
}
hr = idz_dll_init(&idz_hook_cfg.dll, idz_hook_mod);
if (FAILED(hr)) {
goto fail;
}
hr = amex_hook_init(&idz_hook_cfg.amex, idz_jvs_init);
if (FAILED(hr)) {