summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc40
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc10
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.Hooks.inc270
-rw-r--r--src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc40
-rw-r--r--src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc10
-rw-r--r--src/plugins/HPMHooking/HPMHooking_login.Hooks.inc270
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc40
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc10
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc270
9 files changed, 960 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc
index a6805a723..147ce5734 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.HPMHooksCore.inc
@@ -722,6 +722,26 @@ struct {
struct HPMHookPoint *HP_libconfig_setting_copy_aggregate_post;
struct HPMHookPoint *HP_libconfig_setting_copy_pre;
struct HPMHookPoint *HP_libconfig_setting_copy_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_bool_real_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_bool_real_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint32_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint32_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint16_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_int16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_int16_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_bool_real_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_bool_real_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint32_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint32_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint16_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_int16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_int16_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_mutable_string_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_mutable_string_post;
+ struct HPMHookPoint *HP_libconfig_lookup_mutable_string_pre;
+ struct HPMHookPoint *HP_libconfig_lookup_mutable_string_post;
struct HPMHookPoint *HP_loginif_init_pre;
struct HPMHookPoint *HP_loginif_init_post;
struct HPMHookPoint *HP_loginif_final_pre;
@@ -2101,6 +2121,26 @@ struct {
int HP_libconfig_setting_copy_aggregate_post;
int HP_libconfig_setting_copy_pre;
int HP_libconfig_setting_copy_post;
+ int HP_libconfig_setting_get_bool_real_pre;
+ int HP_libconfig_setting_get_bool_real_post;
+ int HP_libconfig_setting_get_uint32_pre;
+ int HP_libconfig_setting_get_uint32_post;
+ int HP_libconfig_setting_get_uint16_pre;
+ int HP_libconfig_setting_get_uint16_post;
+ int HP_libconfig_setting_get_int16_pre;
+ int HP_libconfig_setting_get_int16_post;
+ int HP_libconfig_setting_lookup_bool_real_pre;
+ int HP_libconfig_setting_lookup_bool_real_post;
+ int HP_libconfig_setting_lookup_uint32_pre;
+ int HP_libconfig_setting_lookup_uint32_post;
+ int HP_libconfig_setting_lookup_uint16_pre;
+ int HP_libconfig_setting_lookup_uint16_post;
+ int HP_libconfig_setting_lookup_int16_pre;
+ int HP_libconfig_setting_lookup_int16_post;
+ int HP_libconfig_setting_lookup_mutable_string_pre;
+ int HP_libconfig_setting_lookup_mutable_string_post;
+ int HP_libconfig_lookup_mutable_string_pre;
+ int HP_libconfig_lookup_mutable_string_post;
int HP_loginif_init_pre;
int HP_loginif_init_post;
int HP_loginif_final_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc
index 6055235bd..d37a8afb5 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.HookingPoints.inc
@@ -391,6 +391,16 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(libconfig->setting_copy_elem, HP_libconfig_setting_copy_elem) },
{ HP_POP(libconfig->setting_copy_aggregate, HP_libconfig_setting_copy_aggregate) },
{ HP_POP(libconfig->setting_copy, HP_libconfig_setting_copy) },
+ { HP_POP(libconfig->setting_get_bool_real, HP_libconfig_setting_get_bool_real) },
+ { HP_POP(libconfig->setting_get_uint32, HP_libconfig_setting_get_uint32) },
+ { HP_POP(libconfig->setting_get_uint16, HP_libconfig_setting_get_uint16) },
+ { HP_POP(libconfig->setting_get_int16, HP_libconfig_setting_get_int16) },
+ { HP_POP(libconfig->setting_lookup_bool_real, HP_libconfig_setting_lookup_bool_real) },
+ { HP_POP(libconfig->setting_lookup_uint32, HP_libconfig_setting_lookup_uint32) },
+ { HP_POP(libconfig->setting_lookup_uint16, HP_libconfig_setting_lookup_uint16) },
+ { HP_POP(libconfig->setting_lookup_int16, HP_libconfig_setting_lookup_int16) },
+ { HP_POP(libconfig->setting_lookup_mutable_string, HP_libconfig_setting_lookup_mutable_string) },
+ { HP_POP(libconfig->lookup_mutable_string, HP_libconfig_lookup_mutable_string) },
/* loginif */
{ HP_POP(loginif->init, HP_loginif_init) },
{ HP_POP(loginif->final, HP_loginif_final) },
diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
index efc743ed2..f4632e5eb 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
@@ -9380,6 +9380,276 @@ int HP_libconfig_setting_copy(config_setting_t *parent, const config_setting_t *
}
return retVal___;
}
+bool HP_libconfig_setting_get_bool_real(const config_setting_t *setting) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if( HPMHooks.count.HP_libconfig_setting_get_bool_real_pre ) {
+ bool (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_real_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_real_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_bool_real(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_bool_real_post ) {
+ bool (*postHookFunc) (bool retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_real_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_real_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+uint32 HP_libconfig_setting_get_uint32(const config_setting_t *setting) {
+ int hIndex = 0;
+ uint32 retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_get_uint32_pre ) {
+ uint32 (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint32_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint32_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_uint32(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_uint32_post ) {
+ uint32 (*postHookFunc) (uint32 retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint32_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint32_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+uint16 HP_libconfig_setting_get_uint16(const config_setting_t *setting) {
+ int hIndex = 0;
+ uint16 retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_get_uint16_pre ) {
+ uint16 (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_uint16(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_uint16_post ) {
+ uint16 (*postHookFunc) (uint16 retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+int16 HP_libconfig_setting_get_int16(const config_setting_t *setting) {
+ int hIndex = 0;
+ int16 retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_get_int16_pre ) {
+ int16 (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_int16(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_int16_post ) {
+ int16 (*postHookFunc) (int16 retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_int16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_bool_real(const config_setting_t *setting, const char *name, bool *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, bool *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_real_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_bool_real(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_bool_real_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, bool *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_real_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_real_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_uint32(const config_setting_t *setting, const char *name, uint32 *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, uint32 *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint32_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_uint32(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint32_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, uint32 *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint32_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint32_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_uint16(const config_setting_t *setting, const char *name, uint16 *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, uint16 *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_uint16(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint16_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, uint16 *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_int16(const config_setting_t *setting, const char *name, int16 *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_int16_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, int16 *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_int16(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_int16_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, int16 *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_mutable_string(const config_setting_t *setting, const char *name, char *out, size_t out_size) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, char *out, size_t *out_size);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_mutable_string_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, out, &out_size);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_mutable_string(setting, name, out, out_size);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, char *out, size_t *out_size);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_mutable_string_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, out, &out_size);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_lookup_mutable_string(const config_t *config, const char *name, char *out, size_t out_size) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_lookup_mutable_string_pre ) {
+ int (*preHookFunc) (const config_t *config, const char *name, char *out, size_t *out_size);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_lookup_mutable_string_pre[hIndex].func;
+ retVal___ = preHookFunc(config, name, out, &out_size);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.lookup_mutable_string(config, name, out, out_size);
+ }
+ if( HPMHooks.count.HP_libconfig_lookup_mutable_string_post ) {
+ int (*postHookFunc) (int retVal___, const config_t *config, const char *name, char *out, size_t *out_size);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_lookup_mutable_string_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, config, name, out, &out_size);
+ }
+ }
+ return retVal___;
+}
/* loginif */
void HP_loginif_init(void) {
int hIndex = 0;
diff --git a/src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc
index 21abd7559..46be1c6d8 100644
--- a/src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking_login.HPMHooksCore.inc
@@ -206,6 +206,26 @@ struct {
struct HPMHookPoint *HP_libconfig_setting_copy_aggregate_post;
struct HPMHookPoint *HP_libconfig_setting_copy_pre;
struct HPMHookPoint *HP_libconfig_setting_copy_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_bool_real_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_bool_real_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint32_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint32_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint16_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_int16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_int16_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_bool_real_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_bool_real_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint32_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint32_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint16_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_int16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_int16_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_mutable_string_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_mutable_string_post;
+ struct HPMHookPoint *HP_libconfig_lookup_mutable_string_pre;
+ struct HPMHookPoint *HP_libconfig_lookup_mutable_string_post;
struct HPMHookPoint *HP_login_mmo_auth_pre;
struct HPMHookPoint *HP_login_mmo_auth_post;
struct HPMHookPoint *HP_login_mmo_auth_new_pre;
@@ -785,6 +805,26 @@ struct {
int HP_libconfig_setting_copy_aggregate_post;
int HP_libconfig_setting_copy_pre;
int HP_libconfig_setting_copy_post;
+ int HP_libconfig_setting_get_bool_real_pre;
+ int HP_libconfig_setting_get_bool_real_post;
+ int HP_libconfig_setting_get_uint32_pre;
+ int HP_libconfig_setting_get_uint32_post;
+ int HP_libconfig_setting_get_uint16_pre;
+ int HP_libconfig_setting_get_uint16_post;
+ int HP_libconfig_setting_get_int16_pre;
+ int HP_libconfig_setting_get_int16_post;
+ int HP_libconfig_setting_lookup_bool_real_pre;
+ int HP_libconfig_setting_lookup_bool_real_post;
+ int HP_libconfig_setting_lookup_uint32_pre;
+ int HP_libconfig_setting_lookup_uint32_post;
+ int HP_libconfig_setting_lookup_uint16_pre;
+ int HP_libconfig_setting_lookup_uint16_post;
+ int HP_libconfig_setting_lookup_int16_pre;
+ int HP_libconfig_setting_lookup_int16_post;
+ int HP_libconfig_setting_lookup_mutable_string_pre;
+ int HP_libconfig_setting_lookup_mutable_string_post;
+ int HP_libconfig_lookup_mutable_string_pre;
+ int HP_libconfig_lookup_mutable_string_post;
int HP_login_mmo_auth_pre;
int HP_login_mmo_auth_post;
int HP_login_mmo_auth_new_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc
index f061d1343..f10d4f1fe 100644
--- a/src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking_login.HookingPoints.inc
@@ -120,6 +120,16 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(libconfig->setting_copy_elem, HP_libconfig_setting_copy_elem) },
{ HP_POP(libconfig->setting_copy_aggregate, HP_libconfig_setting_copy_aggregate) },
{ HP_POP(libconfig->setting_copy, HP_libconfig_setting_copy) },
+ { HP_POP(libconfig->setting_get_bool_real, HP_libconfig_setting_get_bool_real) },
+ { HP_POP(libconfig->setting_get_uint32, HP_libconfig_setting_get_uint32) },
+ { HP_POP(libconfig->setting_get_uint16, HP_libconfig_setting_get_uint16) },
+ { HP_POP(libconfig->setting_get_int16, HP_libconfig_setting_get_int16) },
+ { HP_POP(libconfig->setting_lookup_bool_real, HP_libconfig_setting_lookup_bool_real) },
+ { HP_POP(libconfig->setting_lookup_uint32, HP_libconfig_setting_lookup_uint32) },
+ { HP_POP(libconfig->setting_lookup_uint16, HP_libconfig_setting_lookup_uint16) },
+ { HP_POP(libconfig->setting_lookup_int16, HP_libconfig_setting_lookup_int16) },
+ { HP_POP(libconfig->setting_lookup_mutable_string, HP_libconfig_setting_lookup_mutable_string) },
+ { HP_POP(libconfig->lookup_mutable_string, HP_libconfig_lookup_mutable_string) },
/* login */
{ HP_POP(login->mmo_auth, HP_login_mmo_auth) },
{ HP_POP(login->mmo_auth_new, HP_login_mmo_auth_new) },
diff --git a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
index ced7b4cc9..79da7f941 100644
--- a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc
@@ -2474,6 +2474,276 @@ int HP_libconfig_setting_copy(config_setting_t *parent, const config_setting_t *
}
return retVal___;
}
+bool HP_libconfig_setting_get_bool_real(const config_setting_t *setting) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if( HPMHooks.count.HP_libconfig_setting_get_bool_real_pre ) {
+ bool (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_real_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_real_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_bool_real(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_bool_real_post ) {
+ bool (*postHookFunc) (bool retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_real_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_real_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+uint32 HP_libconfig_setting_get_uint32(const config_setting_t *setting) {
+ int hIndex = 0;
+ uint32 retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_get_uint32_pre ) {
+ uint32 (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint32_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint32_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_uint32(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_uint32_post ) {
+ uint32 (*postHookFunc) (uint32 retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint32_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint32_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+uint16 HP_libconfig_setting_get_uint16(const config_setting_t *setting) {
+ int hIndex = 0;
+ uint16 retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_get_uint16_pre ) {
+ uint16 (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_uint16(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_uint16_post ) {
+ uint16 (*postHookFunc) (uint16 retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+int16 HP_libconfig_setting_get_int16(const config_setting_t *setting) {
+ int hIndex = 0;
+ int16 retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_get_int16_pre ) {
+ int16 (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_int16(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_int16_post ) {
+ int16 (*postHookFunc) (int16 retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_int16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_bool_real(const config_setting_t *setting, const char *name, bool *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, bool *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_real_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_bool_real(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_bool_real_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, bool *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_real_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_real_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_uint32(const config_setting_t *setting, const char *name, uint32 *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, uint32 *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint32_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_uint32(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint32_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, uint32 *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint32_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint32_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_uint16(const config_setting_t *setting, const char *name, uint16 *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, uint16 *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_uint16(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint16_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, uint16 *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_int16(const config_setting_t *setting, const char *name, int16 *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_int16_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, int16 *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_int16(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_int16_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, int16 *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_mutable_string(const config_setting_t *setting, const char *name, char *out, size_t out_size) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, char *out, size_t *out_size);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_mutable_string_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, out, &out_size);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_mutable_string(setting, name, out, out_size);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, char *out, size_t *out_size);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_mutable_string_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, out, &out_size);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_lookup_mutable_string(const config_t *config, const char *name, char *out, size_t out_size) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_lookup_mutable_string_pre ) {
+ int (*preHookFunc) (const config_t *config, const char *name, char *out, size_t *out_size);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_lookup_mutable_string_pre[hIndex].func;
+ retVal___ = preHookFunc(config, name, out, &out_size);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.lookup_mutable_string(config, name, out, out_size);
+ }
+ if( HPMHooks.count.HP_libconfig_lookup_mutable_string_post ) {
+ int (*postHookFunc) (int retVal___, const config_t *config, const char *name, char *out, size_t *out_size);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_lookup_mutable_string_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, config, name, out, &out_size);
+ }
+ }
+ return retVal___;
+}
/* login */
int HP_login_mmo_auth(struct login_session_data *sd, bool isServer) {
int hIndex = 0;
diff --git a/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc
index 6c1efa226..567092d4a 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.HPMHooksCore.inc
@@ -2854,6 +2854,26 @@ struct {
struct HPMHookPoint *HP_libconfig_setting_copy_aggregate_post;
struct HPMHookPoint *HP_libconfig_setting_copy_pre;
struct HPMHookPoint *HP_libconfig_setting_copy_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_bool_real_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_bool_real_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint32_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint32_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_uint16_post;
+ struct HPMHookPoint *HP_libconfig_setting_get_int16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_get_int16_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_bool_real_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_bool_real_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint32_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint32_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_uint16_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_int16_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_int16_post;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_mutable_string_pre;
+ struct HPMHookPoint *HP_libconfig_setting_lookup_mutable_string_post;
+ struct HPMHookPoint *HP_libconfig_lookup_mutable_string_pre;
+ struct HPMHookPoint *HP_libconfig_lookup_mutable_string_post;
struct HPMHookPoint *HP_logs_pick_pc_pre;
struct HPMHookPoint *HP_logs_pick_pc_post;
struct HPMHookPoint *HP_logs_pick_mob_pre;
@@ -8705,6 +8725,26 @@ struct {
int HP_libconfig_setting_copy_aggregate_post;
int HP_libconfig_setting_copy_pre;
int HP_libconfig_setting_copy_post;
+ int HP_libconfig_setting_get_bool_real_pre;
+ int HP_libconfig_setting_get_bool_real_post;
+ int HP_libconfig_setting_get_uint32_pre;
+ int HP_libconfig_setting_get_uint32_post;
+ int HP_libconfig_setting_get_uint16_pre;
+ int HP_libconfig_setting_get_uint16_post;
+ int HP_libconfig_setting_get_int16_pre;
+ int HP_libconfig_setting_get_int16_post;
+ int HP_libconfig_setting_lookup_bool_real_pre;
+ int HP_libconfig_setting_lookup_bool_real_post;
+ int HP_libconfig_setting_lookup_uint32_pre;
+ int HP_libconfig_setting_lookup_uint32_post;
+ int HP_libconfig_setting_lookup_uint16_pre;
+ int HP_libconfig_setting_lookup_uint16_post;
+ int HP_libconfig_setting_lookup_int16_pre;
+ int HP_libconfig_setting_lookup_int16_post;
+ int HP_libconfig_setting_lookup_mutable_string_pre;
+ int HP_libconfig_setting_lookup_mutable_string_post;
+ int HP_libconfig_lookup_mutable_string_pre;
+ int HP_libconfig_lookup_mutable_string_post;
int HP_logs_pick_pc_pre;
int HP_logs_pick_pc_post;
int HP_logs_pick_mob_pre;
diff --git a/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc
index b71165e53..54c7dfd45 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.HookingPoints.inc
@@ -1461,6 +1461,16 @@ struct HookingPointData HookingPoints[] = {
{ HP_POP(libconfig->setting_copy_elem, HP_libconfig_setting_copy_elem) },
{ HP_POP(libconfig->setting_copy_aggregate, HP_libconfig_setting_copy_aggregate) },
{ HP_POP(libconfig->setting_copy, HP_libconfig_setting_copy) },
+ { HP_POP(libconfig->setting_get_bool_real, HP_libconfig_setting_get_bool_real) },
+ { HP_POP(libconfig->setting_get_uint32, HP_libconfig_setting_get_uint32) },
+ { HP_POP(libconfig->setting_get_uint16, HP_libconfig_setting_get_uint16) },
+ { HP_POP(libconfig->setting_get_int16, HP_libconfig_setting_get_int16) },
+ { HP_POP(libconfig->setting_lookup_bool_real, HP_libconfig_setting_lookup_bool_real) },
+ { HP_POP(libconfig->setting_lookup_uint32, HP_libconfig_setting_lookup_uint32) },
+ { HP_POP(libconfig->setting_lookup_uint16, HP_libconfig_setting_lookup_uint16) },
+ { HP_POP(libconfig->setting_lookup_int16, HP_libconfig_setting_lookup_int16) },
+ { HP_POP(libconfig->setting_lookup_mutable_string, HP_libconfig_setting_lookup_mutable_string) },
+ { HP_POP(libconfig->lookup_mutable_string, HP_libconfig_lookup_mutable_string) },
/* logs */
{ HP_POP(logs->pick_pc, HP_logs_pick_pc) },
{ HP_POP(logs->pick_mob, HP_logs_pick_mob) },
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index 86fc423e3..6dfd0627d 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -37610,6 +37610,276 @@ int HP_libconfig_setting_copy(config_setting_t *parent, const config_setting_t *
}
return retVal___;
}
+bool HP_libconfig_setting_get_bool_real(const config_setting_t *setting) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if( HPMHooks.count.HP_libconfig_setting_get_bool_real_pre ) {
+ bool (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_real_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_real_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_bool_real(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_bool_real_post ) {
+ bool (*postHookFunc) (bool retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_bool_real_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_bool_real_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+uint32 HP_libconfig_setting_get_uint32(const config_setting_t *setting) {
+ int hIndex = 0;
+ uint32 retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_get_uint32_pre ) {
+ uint32 (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint32_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint32_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_uint32(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_uint32_post ) {
+ uint32 (*postHookFunc) (uint32 retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint32_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint32_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+uint16 HP_libconfig_setting_get_uint16(const config_setting_t *setting) {
+ int hIndex = 0;
+ uint16 retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_get_uint16_pre ) {
+ uint16 (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_uint16(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_uint16_post ) {
+ uint16 (*postHookFunc) (uint16 retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_uint16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_uint16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+int16 HP_libconfig_setting_get_int16(const config_setting_t *setting) {
+ int hIndex = 0;
+ int16 retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_get_int16_pre ) {
+ int16 (*preHookFunc) (const config_setting_t *setting);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_get_int16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_get_int16(setting);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_get_int16_post ) {
+ int16 (*postHookFunc) (int16 retVal___, const config_setting_t *setting);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_get_int16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_get_int16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_bool_real(const config_setting_t *setting, const char *name, bool *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, bool *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_real_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_real_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_bool_real(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_bool_real_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, bool *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_bool_real_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_bool_real_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_uint32(const config_setting_t *setting, const char *name, uint32 *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, uint32 *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint32_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint32_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_uint32(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint32_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, uint32 *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint32_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint32_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_uint16(const config_setting_t *setting, const char *name, uint16 *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, uint16 *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_uint16(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_uint16_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, uint16 *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_uint16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_uint16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_int16(const config_setting_t *setting, const char *name, int16 *value) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_int16_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, int16 *value);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int16_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int16_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, value);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_int16(setting, name, value);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_int16_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, int16 *value);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_int16_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_int16_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, value);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_setting_lookup_mutable_string(const config_setting_t *setting, const char *name, char *out, size_t out_size) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre ) {
+ int (*preHookFunc) (const config_setting_t *setting, const char *name, char *out, size_t *out_size);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_mutable_string_pre[hIndex].func;
+ retVal___ = preHookFunc(setting, name, out, &out_size);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.setting_lookup_mutable_string(setting, name, out, out_size);
+ }
+ if( HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post ) {
+ int (*postHookFunc) (int retVal___, const config_setting_t *setting, const char *name, char *out, size_t *out_size);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_setting_lookup_mutable_string_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_setting_lookup_mutable_string_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, setting, name, out, &out_size);
+ }
+ }
+ return retVal___;
+}
+int HP_libconfig_lookup_mutable_string(const config_t *config, const char *name, char *out, size_t out_size) {
+ int hIndex = 0;
+ int retVal___ = 0;
+ if( HPMHooks.count.HP_libconfig_lookup_mutable_string_pre ) {
+ int (*preHookFunc) (const config_t *config, const char *name, char *out, size_t *out_size);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_libconfig_lookup_mutable_string_pre[hIndex].func;
+ retVal___ = preHookFunc(config, name, out, &out_size);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.libconfig.lookup_mutable_string(config, name, out, out_size);
+ }
+ if( HPMHooks.count.HP_libconfig_lookup_mutable_string_post ) {
+ int (*postHookFunc) (int retVal___, const config_t *config, const char *name, char *out, size_t *out_size);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_libconfig_lookup_mutable_string_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_libconfig_lookup_mutable_string_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, config, name, out, &out_size);
+ }
+ }
+ return retVal___;
+}
/* logs */
void HP_logs_pick_pc(struct map_session_data *sd, e_log_pick_type type, int amount, struct item *itm, struct item_data *data) {
int hIndex = 0;