Skip to content

Commit

Permalink
HPM Hooks Update
Browse files Browse the repository at this point in the history
Signed-off-by: HerculesWSAPI <[email protected]>
  • Loading branch information
HerculesWSAPI committed Aug 26, 2018
1 parent 5bb4170 commit 5a998ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/plugins/HPMHooking/HPMHooking.Defs.inc
Original file line number Diff line number Diff line change
Expand Up @@ -3510,8 +3510,8 @@ typedef int (*HPMHOOK_pre_intif_request_registry) (struct map_session_data **sd,
typedef int (*HPMHOOK_post_intif_request_registry) (int retVal___, struct map_session_data *sd, int flag);
typedef void (*HPMHOOK_pre_intif_request_account_storage) (const struct map_session_data **sd);
typedef void (*HPMHOOK_post_intif_request_account_storage) (const struct map_session_data *sd);
typedef void (*HPMHOOK_pre_intif_send_account_storage) (const struct map_session_data **sd);
typedef void (*HPMHOOK_post_intif_send_account_storage) (const struct map_session_data *sd);
typedef void (*HPMHOOK_pre_intif_send_account_storage) (struct map_session_data **sd);
typedef void (*HPMHOOK_post_intif_send_account_storage) (struct map_session_data *sd);
typedef int (*HPMHOOK_pre_intif_request_guild_storage) (int *account_id, int *guild_id);
typedef int (*HPMHOOK_post_intif_request_guild_storage) (int retVal___, int account_id, int guild_id);
typedef int (*HPMHOOK_pre_intif_send_guild_storage) (int *account_id, struct guild_storage **gstor);
Expand Down
6 changes: 3 additions & 3 deletions src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
Original file line number Diff line number Diff line change
Expand Up @@ -35538,10 +35538,10 @@ void HP_intif_request_account_storage(const struct map_session_data *sd) {
}
return;
}
void HP_intif_send_account_storage(const struct map_session_data *sd) {
void HP_intif_send_account_storage(struct map_session_data *sd) {
int hIndex = 0;
if (HPMHooks.count.HP_intif_send_account_storage_pre > 0) {
void (*preHookFunc) (const struct map_session_data **sd);
void (*preHookFunc) (struct map_session_data **sd);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_intif_send_account_storage_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_intif_send_account_storage_pre[hIndex].func;
Expand All @@ -35556,7 +35556,7 @@ void HP_intif_send_account_storage(const struct map_session_data *sd) {
HPMHooks.source.intif.send_account_storage(sd);
}
if (HPMHooks.count.HP_intif_send_account_storage_post > 0) {
void (*postHookFunc) (const struct map_session_data *sd);
void (*postHookFunc) (struct map_session_data *sd);
for (hIndex = 0; hIndex < HPMHooks.count.HP_intif_send_account_storage_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_intif_send_account_storage_post[hIndex].func;
postHookFunc(sd);
Expand Down

0 comments on commit 5a998ca

Please sign in to comment.