diff --git a/src/main/iidxhook1/dllmain.c b/src/main/iidxhook1/dllmain.c index f8d9d53..2eadfeb 100644 --- a/src/main/iidxhook1/dllmain.c +++ b/src/main/iidxhook1/dllmain.c @@ -191,6 +191,12 @@ my_OpenProcess(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId) effector_hook_init(); } + /* Settings paths */ + + if (strlen(config_misc.settings_path) > 0) { + settings_hook_set_path(config_misc.settings_path); + } + /* Direct3D and USER32 hooks */ iidxhook1_setup_d3d9_hooks(&config_gfx, &config_iidxhook1); diff --git a/src/main/iidxhook2/dllmain.c b/src/main/iidxhook2/dllmain.c index fbcf65e..7927de2 100644 --- a/src/main/iidxhook2/dllmain.c +++ b/src/main/iidxhook2/dllmain.c @@ -184,6 +184,12 @@ my_OpenProcess(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId) effector_hook_init(); } + /* Settings paths */ + + if (strlen(config_misc.settings_path) > 0) { + settings_hook_set_path(config_misc.settings_path); + } + /* Direct3D and USER32 hooks */ iidxhook2_setup_d3d9_hooks(&config_gfx, &config_iidxhook2); diff --git a/src/main/iidxhook3/dllmain.c b/src/main/iidxhook3/dllmain.c index 67dd09a..45697bd 100644 --- a/src/main/iidxhook3/dllmain.c +++ b/src/main/iidxhook3/dllmain.c @@ -181,6 +181,12 @@ my_OpenProcess(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId) eamuse_set_addr(&config_eamuse.server); eamuse_check_connection(); + /* Settings paths */ + + if (strlen(config_misc.settings_path) > 0) { + settings_hook_set_path(config_misc.settings_path); + } + /* Direct3D and USER32 hooks */ iidxhook3_setup_d3d9_hooks(&config_gfx); diff --git a/src/main/iidxhook4-cn/dllmain.c b/src/main/iidxhook4-cn/dllmain.c index 550a418..d8dc096 100644 --- a/src/main/iidxhook4-cn/dllmain.c +++ b/src/main/iidxhook4-cn/dllmain.c @@ -29,6 +29,7 @@ #include "iidxhook-util/config-gfx.h" #include "iidxhook-util/config-io.h" #include "iidxhook-util/config-sec.h" +#include "iidxhook-util/config-misc.h" #include "iidxhook-util/d3d9.h" #include "iidxhook-util/settings.h" @@ -117,6 +118,7 @@ my_OpenProcess(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId) struct iidxhook_util_config_eamuse config_eamuse; struct iidxhook_config_gfx config_gfx; struct iidxhook_config_sec config_sec; + struct iidxhook_config_misc config_misc; if (iidxhook_init_check) { return real_OpenProcess(dwDesiredAccess, bInheritHandle, dwProcessId); @@ -134,6 +136,7 @@ my_OpenProcess(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId) iidxhook_config_gfx_init(config); iidxhook_config_io_init(config); iidxhook_config_sec_init(config); + iidxhook_config_misc_init(config); if (!cconfig_hook_config_init( config, @@ -147,6 +150,7 @@ my_OpenProcess(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId) iidxhook_config_gfx_get(&config_gfx, config); iidxhook_config_io_get(&config_io, config); iidxhook_config_sec_get(&config_sec, config); + iidxhook_config_misc_get(&config_misc, config); cconfig_finit(config); @@ -169,6 +173,10 @@ my_OpenProcess(DWORD dwDesiredAccess, BOOL bInheritHandle, DWORD dwProcessId) iidxhook4_cn_setup_d3d9_hooks(&config_gfx); + if (strlen(config_misc.settings_path) > 0) { + settings_hook_set_path(config_misc.settings_path); + } + if (!config_io.disable_io_emu) { log_info("Starting IIDX IO backend"); diff --git a/src/main/iidxhook4/dllmain.c b/src/main/iidxhook4/dllmain.c index 0d85bc5..8c291d8 100644 --- a/src/main/iidxhook4/dllmain.c +++ b/src/main/iidxhook4/dllmain.c @@ -29,6 +29,7 @@ #include "iidxhook-util/chart-patch.h" #include "iidxhook-util/config-gfx.h" #include "iidxhook-util/config-io.h" +#include "iidxhook-util/config-misc.h" #include "iidxhook-util/d3d9.h" #include "iidxhook-util/log-server.h" #include "iidxhook-util/settings.h" @@ -100,6 +101,7 @@ static bool my_dll_entry_init(char *sidcode, struct property_node *param) struct cconfig *config; struct iidxhook_config_gfx config_gfx; + struct iidxhook_config_misc config_misc; log_server_init(); log_info("-------------------------------------------------------------"); @@ -110,6 +112,7 @@ static bool my_dll_entry_init(char *sidcode, struct property_node *param) iidxhook_config_gfx_init(config); iidxhook_config_io_init(config); + iidxhook_config_misc_init(config); if (!cconfig_hook_config_init( config, @@ -122,6 +125,7 @@ static bool my_dll_entry_init(char *sidcode, struct property_node *param) iidxhook_config_gfx_get(&config_gfx, config); iidxhook_config_io_get(&config_io, config); + iidxhook_config_misc_get(&config_misc, config); cconfig_finit(config); @@ -130,6 +134,10 @@ static bool my_dll_entry_init(char *sidcode, struct property_node *param) iidxhook4_setup_d3d9_hooks(&config_gfx); + if (strlen(config_misc.settings_path) > 0) { + settings_hook_set_path(config_misc.settings_path); + } + if (!config_io.disable_io_emu) { log_info("Starting IIDX IO backend"); diff --git a/src/main/iidxhook5-cn/dllmain.c b/src/main/iidxhook5-cn/dllmain.c index fbf66b0..4700eb2 100644 --- a/src/main/iidxhook5-cn/dllmain.c +++ b/src/main/iidxhook5-cn/dllmain.c @@ -29,6 +29,7 @@ #include "iidxhook-util/config-gfx.h" #include "iidxhook-util/config-io.h" #include "iidxhook-util/config-sec.h" +#include "iidxhook-util/config-misc.h" #include "iidxhook-util/d3d9.h" #include "iidxhook-util/settings.h" @@ -98,6 +99,7 @@ static ATOM WINAPI my_RegisterClassA(const WNDCLASSA *lpWndClass) struct iidxhook_util_config_eamuse config_eamuse; struct iidxhook_config_gfx config_gfx; struct iidxhook_config_sec config_sec; + struct iidxhook_config_misc config_misc; if (iidxhook_init_check) { return real_RegisterClassA(lpWndClass); @@ -115,6 +117,7 @@ static ATOM WINAPI my_RegisterClassA(const WNDCLASSA *lpWndClass) iidxhook_config_gfx_init(config); iidxhook_config_io_init(config); iidxhook_config_sec_init(config); + iidxhook_config_misc_init(config); if (!cconfig_hook_config_init( config, @@ -128,6 +131,7 @@ static ATOM WINAPI my_RegisterClassA(const WNDCLASSA *lpWndClass) iidxhook_config_gfx_get(&config_gfx, config); iidxhook_config_io_get(&config_io, config); iidxhook_config_sec_get(&config_sec, config); + iidxhook_config_misc_get(&config_misc, config); cconfig_finit(config); @@ -150,6 +154,10 @@ static ATOM WINAPI my_RegisterClassA(const WNDCLASSA *lpWndClass) iidxhook5_cn_setup_d3d9_hooks(&config_gfx); + if (strlen(config_misc.settings_path) > 0) { + settings_hook_set_path(config_misc.settings_path); + } + if (!config_io.disable_io_emu) { log_info("Starting IIDX IO backend"); diff --git a/src/main/iidxhook5/dllmain.c b/src/main/iidxhook5/dllmain.c index 738a4c8..a533d34 100644 --- a/src/main/iidxhook5/dllmain.c +++ b/src/main/iidxhook5/dllmain.c @@ -28,6 +28,7 @@ #include "iidxhook-util/acio.h" #include "iidxhook-util/config-gfx.h" #include "iidxhook-util/config-io.h" +#include "iidxhook-util/config-misc.h" #include "iidxhook-util/d3d9.h" #include "iidxhook-util/log-server.h" #include "iidxhook-util/settings.h" @@ -82,6 +83,7 @@ static bool my_dll_entry_init(char *sidcode, struct property_node *param) struct cconfig *config; struct iidxhook_config_gfx config_gfx; + struct iidxhook_config_misc config_misc; log_server_init(); log_info("-------------------------------------------------------------"); @@ -92,6 +94,7 @@ static bool my_dll_entry_init(char *sidcode, struct property_node *param) iidxhook_config_gfx_init(config); iidxhook_config_io_init(config); + iidxhook_config_misc_init(config); if (!cconfig_hook_config_init( config, @@ -104,6 +107,7 @@ static bool my_dll_entry_init(char *sidcode, struct property_node *param) iidxhook_config_gfx_get(&config_gfx, config); iidxhook_config_io_get(&config_io, config); + iidxhook_config_misc_get(&config_misc, config); cconfig_finit(config); @@ -112,6 +116,10 @@ static bool my_dll_entry_init(char *sidcode, struct property_node *param) iidxhook5_setup_d3d9_hooks(&config_gfx); + if (strlen(config_misc.settings_path) > 0) { + settings_hook_set_path(config_misc.settings_path); + } + if (!config_io.disable_io_emu) { log_info("Starting IIDX IO backend");