diff options
author | Hercules.ws <dev@herc.ws> | 2017-05-30 02:52:06 +0200 |
---|---|---|
committer | HerculesWSAPI <dev@herc.ws> | 2017-05-30 02:52:06 +0200 |
commit | 8c5b8ac7d87d8d4dc49d3ff1768f8884a0d75d72 (patch) | |
tree | 59412bac86bafb92bed1cc61e468ec36205ca38c /src/plugins/HPMHooking/HPMHooking_char.Hooks.inc | |
parent | 5383a14853327c123cbb037d3680aaa3d8c3e724 (diff) | |
download | hercules-8c5b8ac7d87d8d4dc49d3ff1768f8884a0d75d72.tar.gz hercules-8c5b8ac7d87d8d4dc49d3ff1768f8884a0d75d72.tar.bz2 hercules-8c5b8ac7d87d8d4dc49d3ff1768f8884a0d75d72.tar.xz hercules-8c5b8ac7d87d8d4dc49d3ff1768f8884a0d75d72.zip |
HPM Hooks Update
Signed-off-by: HerculesWSAPI <dev@herc.ws>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_char.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_char.Hooks.inc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc index 656fd8e07..c6a7ee191 100644 --- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc @@ -8286,6 +8286,32 @@ int HP_inter_storage_delete_(int account_id) { } return retVal___; } +void HP_inter_storage_delete_account_storage(int account_id) { + int hIndex = 0; + if (HPMHooks.count.HP_inter_storage_delete_account_storage_pre > 0) { + void (*preHookFunc) (int *account_id); + *HPMforce_return = false; + for (hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_delete_account_storage_pre; hIndex++) { + preHookFunc = HPMHooks.list.HP_inter_storage_delete_account_storage_pre[hIndex].func; + preHookFunc(&account_id); + } + if (*HPMforce_return) { + *HPMforce_return = false; + return; + } + } + { + HPMHooks.source.inter_storage.delete_account_storage(account_id); + } + if (HPMHooks.count.HP_inter_storage_delete_account_storage_post > 0) { + void (*postHookFunc) (int account_id); + for (hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_delete_account_storage_post; hIndex++) { + postHookFunc = HPMHooks.list.HP_inter_storage_delete_account_storage_post[hIndex].func; + postHookFunc(account_id); + } + } + return; +} int HP_inter_storage_guild_storage_delete(int guild_id) { int hIndex = 0; int retVal___ = 0; |