summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-07-06 23:26:02 +0200
committerHaru <haru@dotalux.com>2018-07-06 23:26:02 +0200
commitb03d9630d877c2ea9e3197e5e22985bac58c82e9 (patch)
tree6473aa2be727ada7cca6647cc229e4fce95108a4
parent6c99adb0b3de4677fdcc28d636aeaa618ce04bb1 (diff)
downloadhercules-b03d9630d877c2ea9e3197e5e22985bac58c82e9.tar.gz
hercules-b03d9630d877c2ea9e3197e5e22985bac58c82e9.tar.bz2
hercules-b03d9630d877c2ea9e3197e5e22985bac58c82e9.tar.xz
hercules-b03d9630d877c2ea9e3197e5e22985bac58c82e9.zip
HPM Hooks Update
Signed-off-by: Haru <haru@dotalux.com>
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Defs.inc4
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.Hooks.inc12
2 files changed, 8 insertions, 8 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Defs.inc b/src/plugins/HPMHooking/HPMHooking.Defs.inc
index cb1ce11fb..691401277 100644
--- a/src/plugins/HPMHooking/HPMHooking.Defs.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Defs.inc
@@ -3080,8 +3080,8 @@ typedef int (*HPMHOOK_pre_inter_guild_broken) (int *guild_id);
typedef int (*HPMHOOK_post_inter_guild_broken) (int retVal___, int guild_id);
typedef struct guild* (*HPMHOOK_pre_inter_guild_create) (const char **name, const struct guild_member **master);
typedef struct guild* (*HPMHOOK_post_inter_guild_create) (struct guild* retVal___, const char *name, const struct guild_member *master);
-typedef bool (*HPMHOOK_pre_inter_guild_add_member) (int *guild_id, const struct guild_member **member);
-typedef bool (*HPMHOOK_post_inter_guild_add_member) (bool retVal___, int guild_id, const struct guild_member *member);
+typedef bool (*HPMHOOK_pre_inter_guild_add_member) (int *guild_id, const struct guild_member **member, int *map_fd);
+typedef bool (*HPMHOOK_post_inter_guild_add_member) (bool retVal___, int guild_id, const struct guild_member *member, int map_fd);
typedef bool (*HPMHOOK_pre_inter_guild_leave) (int *guild_id, int *account_id, int *char_id, int *flag, const char **mes, int *map_fd);
typedef bool (*HPMHOOK_post_inter_guild_leave) (bool retVal___, int guild_id, int account_id, int char_id, int flag, const char *mes, int map_fd);
typedef bool (*HPMHOOK_pre_inter_guild_update_member_info_short) (int *guild_id, int *account_id, int *char_id, int *online, int *lv, int16 *class);
diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
index 765044b5b..ad57bce86 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
@@ -6750,15 +6750,15 @@ struct guild* HP_inter_guild_create(const char *name, const struct guild_member
}
return retVal___;
}
-bool HP_inter_guild_add_member(int guild_id, const struct guild_member *member) {
+bool HP_inter_guild_add_member(int guild_id, const struct guild_member *member, int map_fd) {
int hIndex = 0;
bool retVal___ = false;
if (HPMHooks.count.HP_inter_guild_add_member_pre > 0) {
- bool (*preHookFunc) (int *guild_id, const struct guild_member **member);
+ bool (*preHookFunc) (int *guild_id, const struct guild_member **member, int *map_fd);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_add_member_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_inter_guild_add_member_pre[hIndex].func;
- retVal___ = preHookFunc(&guild_id, &member);
+ retVal___ = preHookFunc(&guild_id, &member, &map_fd);
}
if (*HPMforce_return) {
*HPMforce_return = false;
@@ -6766,13 +6766,13 @@ bool HP_inter_guild_add_member(int guild_id, const struct guild_member *member)
}
}
{
- retVal___ = HPMHooks.source.inter_guild.add_member(guild_id, member);
+ retVal___ = HPMHooks.source.inter_guild.add_member(guild_id, member, map_fd);
}
if (HPMHooks.count.HP_inter_guild_add_member_post > 0) {
- bool (*postHookFunc) (bool retVal___, int guild_id, const struct guild_member *member);
+ bool (*postHookFunc) (bool retVal___, int guild_id, const struct guild_member *member, int map_fd);
for (hIndex = 0; hIndex < HPMHooks.count.HP_inter_guild_add_member_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_inter_guild_add_member_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, guild_id, member);
+ retVal___ = postHookFunc(retVal___, guild_id, member, map_fd);
}
}
return retVal___;