Skip to content

Commit

Permalink
Regenerate HPM hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
guilherme-gm committed May 15, 2022
1 parent 4006a50 commit 37bca6a
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 @@ -1860,8 +1860,8 @@ typedef void (*HPMHOOK_pre_clif_sendbgemblem_area) (struct map_session_data **sd
typedef void (*HPMHOOK_post_clif_sendbgemblem_area) (struct map_session_data *sd);
typedef void (*HPMHOOK_pre_clif_sendbgemblem_single) (int *fd, struct map_session_data **sd);
typedef void (*HPMHOOK_post_clif_sendbgemblem_single) (int fd, struct map_session_data *sd);
typedef int (*HPMHOOK_pre_clif_instance) (int *instance_id, int *type, int *flag);
typedef int (*HPMHOOK_post_clif_instance) (int retVal___, int instance_id, int type, int flag);
typedef int (*HPMHOOK_pre_clif_instance) (int *instance_id, enum instance_window_info_type *type, int *flag);
typedef int (*HPMHOOK_post_clif_instance) (int retVal___, int instance_id, enum instance_window_info_type type, int flag);
typedef void (*HPMHOOK_pre_clif_instance_join) (int *fd, int *instance_id);
typedef void (*HPMHOOK_post_clif_instance_join) (int fd, int instance_id);
typedef void (*HPMHOOK_pre_clif_instance_leave) (int *fd);
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 @@ -18880,11 +18880,11 @@ void HP_clif_sendbgemblem_single(int fd, struct map_session_data *sd) {
}
return;
}
int HP_clif_instance(int instance_id, int type, int flag) {
int HP_clif_instance(int instance_id, enum instance_window_info_type type, int flag) {
int hIndex = 0;
int retVal___ = 0;
if (HPMHooks.count.HP_clif_instance_pre > 0) {
int (*preHookFunc) (int *instance_id, int *type, int *flag);
int (*preHookFunc) (int *instance_id, enum instance_window_info_type *type, int *flag);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_instance_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_clif_instance_pre[hIndex].func;
Expand All @@ -18899,7 +18899,7 @@ int HP_clif_instance(int instance_id, int type, int flag) {
retVal___ = HPMHooks.source.clif.instance(instance_id, type, flag);
}
if (HPMHooks.count.HP_clif_instance_post > 0) {
int (*postHookFunc) (int retVal___, int instance_id, int type, int flag);
int (*postHookFunc) (int retVal___, int instance_id, enum instance_window_info_type type, int flag);
for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_instance_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_clif_instance_post[hIndex].func;
retVal___ = postHookFunc(retVal___, instance_id, type, flag);
Expand Down

0 comments on commit 37bca6a

Please sign in to comment.