diff --git a/src/main/iidxhook1/iidxhook1.c b/src/main/iidxhook1/iidxhook1.c index d61c708..a1e8922 100644 --- a/src/main/iidxhook1/iidxhook1.c +++ b/src/main/iidxhook1/iidxhook1.c @@ -1,3 +1,5 @@ +#define LOG_MODULE "iidxhook1" + #include #include @@ -44,19 +46,19 @@ #include "module/io-ext.h" #include "module/io.h" +#include "sdk/module/core/config.h" #include "sdk/module/core/log.h" #include "sdk/module/core/thread.h" #include "sdk/module/hook.h" -#include "util/defs.h" #include "util/proc.h" -static const hook_d3d9_irp_handler_t iidxhook_d3d9_handlers[] = { +static const hook_d3d9_irp_handler_t _iidxhook1_d3d9_handlers[] = { iidxhook_util_d3d9_irp_handler, }; -static module_io_t *iidxhook_module_io_iidx; -static module_io_t *iidxhook_module_io_eam; +static module_io_t *_iidxhook1_module_io_iidx; +static module_io_t *_iidxhook1_module_io_eam; static void _iidxhook1_io_iidx_init(module_io_t **module) { @@ -124,7 +126,7 @@ static void iidxhook1_setup_d3d9_hooks( iidxhook_util_d3d9_configure(&d3d9_config); - hook_d3d9_init(iidxhook_d3d9_handlers, lengthof(iidxhook_d3d9_handlers)); + hook_d3d9_init(_iidxhook1_d3d9_handlers, lengthof(_iidxhook1_d3d9_handlers)); } static bool @@ -199,7 +201,7 @@ _iidxhook1_main_init(HMODULE game_module, const bt_core_config_t *config) log_info("Starting IIDX IO backend"); - _iidxhook1_io_iidx_init(&iidxhook_module_io_iidx); + _iidxhook1_io_iidx_init(&_iidxhook1_module_io_iidx); if (!bt_io_iidx_init()) { log_fatal("Initializing IIDX IO backend failed"); @@ -209,7 +211,7 @@ _iidxhook1_main_init(HMODULE game_module, const bt_core_config_t *config) log_misc("Initializing card reader backend"); - _iidxhook1_io_eam_init(&iidxhook_module_io_eam); + _iidxhook1_io_eam_init(&_iidxhook1_module_io_eam); if (!bt_io_eam_init()) { log_fatal("Initializing card reader backend failed"); @@ -230,10 +232,6 @@ _iidxhook1_main_init(HMODULE game_module, const bt_core_config_t *config) ezusb_mon_hook_init(); } - log_info("-------------------------------------------------------------"); - log_info("---------------- End iidxhook my_OpenProcess ----------------"); - log_info("-------------------------------------------------------------"); - return true; } static void _iidxhook1_main_fini() diff --git a/src/main/iidxhook1/iidxhook1.h b/src/main/iidxhook1/iidxhook1.h index 3bf4378..7edbd43 100644 --- a/src/main/iidxhook1/iidxhook1.h +++ b/src/main/iidxhook1/iidxhook1.h @@ -6,9 +6,4 @@ #include "sdk/module/core/thread.h" #include "sdk/module/hook.h" -void bt_module_core_config_api_set(const bt_core_config_api_t *api); -void bt_module_core_log_api_set(const bt_core_log_api_t *api); -void bt_module_core_thread_api_set(const bt_core_thread_api_t *api); -void bt_module_hook_api_get(bt_hook_api_t *api); - #endif \ No newline at end of file