diff options
author | Haru <haru@dotalux.com> | 2020-05-27 13:07:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 13:07:04 +0200 |
commit | f1755315045b90ae1bf752c772e9d4bc747c8671 (patch) | |
tree | f796261c6623e663ae0ffd5027a6f099906dc806 /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | |
parent | 7b79d5d08fc43cfab1d909e107e958daf739d521 (diff) | |
parent | feaae9bc9244ee3c3f8968980b17c69d0ccd710f (diff) | |
download | hercules-f1755315045b90ae1bf752c772e9d4bc747c8671.tar.gz hercules-f1755315045b90ae1bf752c772e9d4bc747c8671.tar.bz2 hercules-f1755315045b90ae1bf752c772e9d4bc747c8671.tar.xz hercules-f1755315045b90ae1bf752c772e9d4bc747c8671.zip |
Merge pull request #2720 from Kenpachi2k13/split_mapreg_table
Split mapreg table and refactor mapreg code
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc index f0e395b64..7a8eac693 100644 --- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc @@ -50916,33 +50916,6 @@ void HP_mapreg_reload(void) { } return; } -bool HP_mapreg_config_read(const char *filename, const struct config_setting_t *config, bool imported) { - int hIndex = 0; - bool retVal___ = false; - if (HPMHooks.count.HP_mapreg_config_read_pre > 0) { - bool (*preHookFunc) (const char **filename, const struct config_setting_t **config, bool *imported); - *HPMforce_return = false; - for (hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_config_read_pre; hIndex++) { - preHookFunc = HPMHooks.list.HP_mapreg_config_read_pre[hIndex].func; - retVal___ = preHookFunc(&filename, &config, &imported); - } - if (*HPMforce_return) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.mapreg.config_read(filename, config, imported); - } - if (HPMHooks.count.HP_mapreg_config_read_post > 0) { - bool (*postHookFunc) (bool retVal___, const char *filename, const struct config_setting_t *config, bool imported); - for (hIndex = 0; hIndex < HPMHooks.count.HP_mapreg_config_read_post; hIndex++) { - postHookFunc = HPMHooks.list.HP_mapreg_config_read_post[hIndex].func; - retVal___ = postHookFunc(retVal___, filename, config, imported); - } - } - return retVal___; -} /* md5_interface */ void HP_md5_string(const char *string, char *output) { int hIndex = 0; |