summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_char.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.Hooks.inc48
1 files changed, 24 insertions, 24 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
index b25025b1d..7552ef1f9 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
@@ -9846,15 +9846,15 @@ int HP_inter_rodex_getitems(int64 mail_id, struct rodex_item *items) {
return retVal___;
}
/* inter_storage_interface */
-int HP_inter_storage_tosql(int account_id, const struct storage_data *p) {
+int HP_inter_storage_tosql(int account_id, int storage_id, const struct storage_data *p) {
int hIndex = 0;
int retVal___ = 0;
if (HPMHooks.count.HP_inter_storage_tosql_pre > 0) {
- int (*preHookFunc) (int *account_id, const struct storage_data **p);
+ int (*preHookFunc) (int *account_id, int *storage_id, const struct storage_data **p);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_tosql_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_inter_storage_tosql_pre[hIndex].func;
- retVal___ = preHookFunc(&account_id, &p);
+ retVal___ = preHookFunc(&account_id, &storage_id, &p);
}
if (*HPMforce_return) {
*HPMforce_return = false;
@@ -9862,26 +9862,26 @@ int HP_inter_storage_tosql(int account_id, const struct storage_data *p) {
}
}
{
- retVal___ = HPMHooks.source.inter_storage.tosql(account_id, p);
+ retVal___ = HPMHooks.source.inter_storage.tosql(account_id, storage_id, p);
}
if (HPMHooks.count.HP_inter_storage_tosql_post > 0) {
- int (*postHookFunc) (int retVal___, int account_id, const struct storage_data *p);
+ int (*postHookFunc) (int retVal___, int account_id, int storage_id, const struct storage_data *p);
for (hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_tosql_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_inter_storage_tosql_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, account_id, p);
+ retVal___ = postHookFunc(retVal___, account_id, storage_id, p);
}
}
return retVal___;
}
-int HP_inter_storage_fromsql(int account_id, struct storage_data *p) {
+int HP_inter_storage_fromsql(int account_id, int storage_id, struct storage_data *p, int storage_size) {
int hIndex = 0;
int retVal___ = 0;
if (HPMHooks.count.HP_inter_storage_fromsql_pre > 0) {
- int (*preHookFunc) (int *account_id, struct storage_data **p);
+ int (*preHookFunc) (int *account_id, int *storage_id, struct storage_data **p, int *storage_size);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_fromsql_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_inter_storage_fromsql_pre[hIndex].func;
- retVal___ = preHookFunc(&account_id, &p);
+ retVal___ = preHookFunc(&account_id, &storage_id, &p, &storage_size);
}
if (*HPMforce_return) {
*HPMforce_return = false;
@@ -9889,13 +9889,13 @@ int HP_inter_storage_fromsql(int account_id, struct storage_data *p) {
}
}
{
- retVal___ = HPMHooks.source.inter_storage.fromsql(account_id, p);
+ retVal___ = HPMHooks.source.inter_storage.fromsql(account_id, storage_id, p, storage_size);
}
if (HPMHooks.count.HP_inter_storage_fromsql_post > 0) {
- int (*postHookFunc) (int retVal___, int account_id, struct storage_data *p);
+ int (*postHookFunc) (int retVal___, int account_id, int storage_id, struct storage_data *p, int storage_size);
for (hIndex = 0; hIndex < HPMHooks.count.HP_inter_storage_fromsql_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_inter_storage_fromsql_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, account_id, p);
+ retVal___ = postHookFunc(retVal___, account_id, storage_id, p, storage_size);
}
}
return retVal___;
@@ -16065,15 +16065,15 @@ int HP_mapif_parse_SaveGuildStorage(int fd) {
}
return retVal___;
}
-int HP_mapif_account_storage_load(int fd, int account_id) {
+int HP_mapif_account_storage_load(int fd, int account_id, int storage_id, int storage_size) {
int hIndex = 0;
int retVal___ = 0;
if (HPMHooks.count.HP_mapif_account_storage_load_pre > 0) {
- int (*preHookFunc) (int *fd, int *account_id);
+ int (*preHookFunc) (int *fd, int *account_id, int *storage_id, int *storage_size);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_mapif_account_storage_load_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_mapif_account_storage_load_pre[hIndex].func;
- retVal___ = preHookFunc(&fd, &account_id);
+ retVal___ = preHookFunc(&fd, &account_id, &storage_id, &storage_size);
}
if (*HPMforce_return) {
*HPMforce_return = false;
@@ -16081,13 +16081,13 @@ int HP_mapif_account_storage_load(int fd, int account_id) {
}
}
{
- retVal___ = HPMHooks.source.mapif.account_storage_load(fd, account_id);
+ retVal___ = HPMHooks.source.mapif.account_storage_load(fd, account_id, storage_id, storage_size);
}
if (HPMHooks.count.HP_mapif_account_storage_load_post > 0) {
- int (*postHookFunc) (int retVal___, int fd, int account_id);
+ int (*postHookFunc) (int retVal___, int fd, int account_id, int storage_id, int storage_size);
for (hIndex = 0; hIndex < HPMHooks.count.HP_mapif_account_storage_load_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_mapif_account_storage_load_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, fd, account_id);
+ retVal___ = postHookFunc(retVal___, fd, account_id, storage_id, storage_size);
}
}
return retVal___;
@@ -16146,14 +16146,14 @@ int HP_mapif_pAccountStorageSave(int fd) {
}
return retVal___;
}
-void HP_mapif_sAccountStorageSaveAck(int fd, int account_id, bool save) {
+void HP_mapif_sAccountStorageSaveAck(int fd, int account_id, int storage_id, bool save) {
int hIndex = 0;
if (HPMHooks.count.HP_mapif_sAccountStorageSaveAck_pre > 0) {
- void (*preHookFunc) (int *fd, int *account_id, bool *save);
+ void (*preHookFunc) (int *fd, int *account_id, int *storage_id, bool *save);
*HPMforce_return = false;
for (hIndex = 0; hIndex < HPMHooks.count.HP_mapif_sAccountStorageSaveAck_pre; hIndex++) {
preHookFunc = HPMHooks.list.HP_mapif_sAccountStorageSaveAck_pre[hIndex].func;
- preHookFunc(&fd, &account_id, &save);
+ preHookFunc(&fd, &account_id, &storage_id, &save);
}
if (*HPMforce_return) {
*HPMforce_return = false;
@@ -16161,13 +16161,13 @@ void HP_mapif_sAccountStorageSaveAck(int fd, int account_id, bool save) {
}
}
{
- HPMHooks.source.mapif.sAccountStorageSaveAck(fd, account_id, save);
+ HPMHooks.source.mapif.sAccountStorageSaveAck(fd, account_id, storage_id, save);
}
if (HPMHooks.count.HP_mapif_sAccountStorageSaveAck_post > 0) {
- void (*postHookFunc) (int fd, int account_id, bool save);
+ void (*postHookFunc) (int fd, int account_id, int storage_id, bool save);
for (hIndex = 0; hIndex < HPMHooks.count.HP_mapif_sAccountStorageSaveAck_post; hIndex++) {
postHookFunc = HPMHooks.list.HP_mapif_sAccountStorageSaveAck_post[hIndex].func;
- postHookFunc(fd, account_id, save);
+ postHookFunc(fd, account_id, storage_id, save);
}
}
return;