diff options
author | Haru <haru@dotalux.com> | 2016-02-11 15:29:27 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-08-19 21:32:19 +0200 |
commit | 654bfa03503da8c5ec86fa0b67baab0e534232a3 (patch) | |
tree | c656cb4361c40a4cfbb3443c5ee7a800eb7e25fc /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | |
parent | 86dde2472e4752b44a14e1d37a9b6288c06f3c00 (diff) | |
download | hercules-654bfa03503da8c5ec86fa0b67baab0e534232a3.tar.gz hercules-654bfa03503da8c5ec86fa0b67baab0e534232a3.tar.bz2 hercules-654bfa03503da8c5ec86fa0b67baab0e534232a3.tar.xz hercules-654bfa03503da8c5ec86fa0b67baab0e534232a3.zip |
HPM Hooks Update
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | 33 |
1 files changed, 3 insertions, 30 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc index d3dfe9148..eff263649 100644 --- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc @@ -41774,11 +41774,11 @@ int HP_map_cleanup_sub(struct block_list *bl, va_list ap) { } return retVal___; } -int HP_map_delmap(char *mapname) { +int HP_map_delmap(const char *mapname) { int hIndex = 0; int retVal___ = 0; if( HPMHooks.count.HP_map_delmap_pre ) { - int (*preHookFunc) (char **mapname); + int (*preHookFunc) (const char **mapname); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_map_delmap_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_map_delmap_pre[hIndex].func; @@ -41793,7 +41793,7 @@ int HP_map_delmap(char *mapname) { retVal___ = HPMHooks.source.map.delmap(mapname); } if( HPMHooks.count.HP_map_delmap_post ) { - int (*postHookFunc) (int retVal___, char *mapname); + int (*postHookFunc) (int retVal___, const char *mapname); for(hIndex = 0; hIndex < HPMHooks.count.HP_map_delmap_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_map_delmap_post[hIndex].func; retVal___ = postHookFunc(retVal___, mapname); @@ -42761,33 +42761,6 @@ bool HP_map_config_read(const char *filename, bool imported) { } return retVal___; } -bool HP_map_config_read_sub(char *filename) { - int hIndex = 0; - bool retVal___ = false; - if( HPMHooks.count.HP_map_config_read_sub_pre ) { - bool (*preHookFunc) (char **filename); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_map_config_read_sub_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_map_config_read_sub_pre[hIndex].func; - retVal___ = preHookFunc(&filename); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.map.config_read_sub(filename); - } - if( HPMHooks.count.HP_map_config_read_sub_post ) { - bool (*postHookFunc) (bool retVal___, char *filename); - for(hIndex = 0; hIndex < HPMHooks.count.HP_map_config_read_sub_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_map_config_read_sub_post[hIndex].func; - retVal___ = postHookFunc(retVal___, filename); - } - } - return retVal___; -} void HP_map_reloadnpc_sub(char *cfgName) { int hIndex = 0; if( HPMHooks.count.HP_map_reloadnpc_sub_pre ) { |