diff options
author | Hercules.ws <dev@herc.ws> | 2018-06-18 21:01:19 +0200 |
---|---|---|
committer | HerculesWSAPI <dev@herc.ws> | 2018-06-18 21:01:19 +0200 |
commit | 7c9860b275ee1c1d39bad2ca2551da82bd525267 (patch) | |
tree | 67a458a2243f1900b7b8ac683adf27878a8cc70b | |
parent | 242bb0f939ff2e68fff8914853cbb87baa8296b6 (diff) | |
download | hercules-7c9860b275ee1c1d39bad2ca2551da82bd525267.tar.gz hercules-7c9860b275ee1c1d39bad2ca2551da82bd525267.tar.bz2 hercules-7c9860b275ee1c1d39bad2ca2551da82bd525267.tar.xz hercules-7c9860b275ee1c1d39bad2ca2551da82bd525267.zip |
HPM Hooks Update
Signed-off-by: HerculesWSAPI <dev@herc.ws>
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking.Defs.inc | 4 | ||||
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Defs.inc b/src/plugins/HPMHooking/HPMHooking.Defs.inc index 5126822af..7c609f0bf 100644 --- a/src/plugins/HPMHooking/HPMHooking.Defs.inc +++ b/src/plugins/HPMHooking/HPMHooking.Defs.inc @@ -2422,8 +2422,8 @@ typedef time_t (*HPMHOOK_pre_clif_attendance_getendtime) (void); typedef time_t (*HPMHOOK_post_clif_attendance_getendtime) (time_t retVal___); typedef void (*HPMHOOK_pre_clif_pOpenUIRequest) (int *fd, struct map_session_data **sd); typedef void (*HPMHOOK_post_clif_pOpenUIRequest) (int fd, struct map_session_data *sd); -typedef void (*HPMHOOK_pre_clif_open_ui) (struct map_session_data **sd, int8 *UIType); -typedef void (*HPMHOOK_post_clif_open_ui) (struct map_session_data *sd, int8 UIType); +typedef void (*HPMHOOK_pre_clif_open_ui) (struct map_session_data **sd, enum cz_ui_types *uiType); +typedef void (*HPMHOOK_post_clif_open_ui) (struct map_session_data *sd, enum cz_ui_types uiType); typedef void (*HPMHOOK_pre_clif_pAttendanceRewardRequest) (int *fd, struct map_session_data **sd); typedef void (*HPMHOOK_post_clif_pAttendanceRewardRequest) (int fd, struct map_session_data *sd); typedef void (*HPMHOOK_pre_clif_ui_action) (struct map_session_data **sd, int32 *UIType, int32 *data); diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc index 02da2a4dd..bd2ef870f 100644 --- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc @@ -26282,14 +26282,14 @@ void HP_clif_pOpenUIRequest(int fd, struct map_session_data *sd) { } return; } -void HP_clif_open_ui(struct map_session_data *sd, int8 UIType) { +void HP_clif_open_ui(struct map_session_data *sd, enum cz_ui_types uiType) { int hIndex = 0; if (HPMHooks.count.HP_clif_open_ui_pre > 0) { - void (*preHookFunc) (struct map_session_data **sd, int8 *UIType); + void (*preHookFunc) (struct map_session_data **sd, enum cz_ui_types *uiType); *HPMforce_return = false; for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_open_ui_pre; hIndex++) { preHookFunc = HPMHooks.list.HP_clif_open_ui_pre[hIndex].func; - preHookFunc(&sd, &UIType); + preHookFunc(&sd, &uiType); } if (*HPMforce_return) { *HPMforce_return = false; @@ -26297,13 +26297,13 @@ void HP_clif_open_ui(struct map_session_data *sd, int8 UIType) { } } { - HPMHooks.source.clif.open_ui(sd, UIType); + HPMHooks.source.clif.open_ui(sd, uiType); } if (HPMHooks.count.HP_clif_open_ui_post > 0) { - void (*postHookFunc) (struct map_session_data *sd, int8 UIType); + void (*postHookFunc) (struct map_session_data *sd, enum cz_ui_types uiType); for (hIndex = 0; hIndex < HPMHooks.count.HP_clif_open_ui_post; hIndex++) { postHookFunc = HPMHooks.list.HP_clif_open_ui_post[hIndex].func; - postHookFunc(sd, UIType); + postHookFunc(sd, uiType); } } return; |