iidxhook: Integrate settings hook configurability

This commit is contained in:
icex2
2023-03-19 21:15:28 +01:00
committed by icex2
parent 7b90963f53
commit 1154444d16
7 changed files with 50 additions and 0 deletions
+8
View File
@@ -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");