diff options
author | Hercules.ws <Hercules@efficiently.awesome> | 2014-05-31 03:30:12 +0200 |
---|---|---|
committer | HerculesWSAPI <Hercules@efficiently.awesome> | 2014-05-31 03:30:12 +0200 |
commit | 287a9dea71fe4edb595c2457af88cfdbe60a4907 (patch) | |
tree | 00cda37a3674a020a7bd139c9b0bc406ce887718 | |
parent | 8dc6717997e8e2d61c72603800b2d9ebba1bc180 (diff) | |
download | hercules-287a9dea71fe4edb595c2457af88cfdbe60a4907.tar.gz hercules-287a9dea71fe4edb595c2457af88cfdbe60a4907.tar.bz2 hercules-287a9dea71fe4edb595c2457af88cfdbe60a4907.tar.xz hercules-287a9dea71fe4edb595c2457af88cfdbe60a4907.zip |
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc | 24 | ||||
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking.HookingPoints.inc | 6 | ||||
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking.Hooks.inc | 162 |
3 files changed, 0 insertions, 192 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc index 57c34db0d..9c877c56a 100644 --- a/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc +++ b/src/plugins/HPMHooking/HPMHooking.HPMHooksCore.inc @@ -2541,18 +2541,6 @@ struct { struct HPMHookPoint *HP_itemdb_isidentified_post; struct HPMHookPoint *HP_itemdb_isidentified2_pre; struct HPMHookPoint *HP_itemdb_isidentified2_post; - struct HPMHookPoint *HP_itemdb_read_itemavail_pre; - struct HPMHookPoint *HP_itemdb_read_itemavail_post; - struct HPMHookPoint *HP_itemdb_read_itemtrade_pre; - struct HPMHookPoint *HP_itemdb_read_itemtrade_post; - struct HPMHookPoint *HP_itemdb_read_itemdelay_pre; - struct HPMHookPoint *HP_itemdb_read_itemdelay_post; - struct HPMHookPoint *HP_itemdb_read_stack_pre; - struct HPMHookPoint *HP_itemdb_read_stack_post; - struct HPMHookPoint *HP_itemdb_read_buyingstore_pre; - struct HPMHookPoint *HP_itemdb_read_buyingstore_post; - struct HPMHookPoint *HP_itemdb_read_nouse_pre; - struct HPMHookPoint *HP_itemdb_read_nouse_post; struct HPMHookPoint *HP_itemdb_combo_split_atoi_pre; struct HPMHookPoint *HP_itemdb_combo_split_atoi_post; struct HPMHookPoint *HP_itemdb_read_combos_pre; @@ -7586,18 +7574,6 @@ struct { int HP_itemdb_isidentified_post; int HP_itemdb_isidentified2_pre; int HP_itemdb_isidentified2_post; - int HP_itemdb_read_itemavail_pre; - int HP_itemdb_read_itemavail_post; - int HP_itemdb_read_itemtrade_pre; - int HP_itemdb_read_itemtrade_post; - int HP_itemdb_read_itemdelay_pre; - int HP_itemdb_read_itemdelay_post; - int HP_itemdb_read_stack_pre; - int HP_itemdb_read_stack_post; - int HP_itemdb_read_buyingstore_pre; - int HP_itemdb_read_buyingstore_post; - int HP_itemdb_read_nouse_pre; - int HP_itemdb_read_nouse_post; int HP_itemdb_combo_split_atoi_pre; int HP_itemdb_combo_split_atoi_post; int HP_itemdb_read_combos_pre; diff --git a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc index 7cccaeb22..603752447 100644 --- a/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc +++ b/src/plugins/HPMHooking/HPMHooking.HookingPoints.inc @@ -1289,12 +1289,6 @@ struct HookingPointData HookingPoints[] = { { HP_POP(itemdb->isrestricted, HP_itemdb_isrestricted) }, { HP_POP(itemdb->isidentified, HP_itemdb_isidentified) }, { HP_POP(itemdb->isidentified2, HP_itemdb_isidentified2) }, - { HP_POP(itemdb->read_itemavail, HP_itemdb_read_itemavail) }, - { HP_POP(itemdb->read_itemtrade, HP_itemdb_read_itemtrade) }, - { HP_POP(itemdb->read_itemdelay, HP_itemdb_read_itemdelay) }, - { HP_POP(itemdb->read_stack, HP_itemdb_read_stack) }, - { HP_POP(itemdb->read_buyingstore, HP_itemdb_read_buyingstore) }, - { HP_POP(itemdb->read_nouse, HP_itemdb_read_nouse) }, { HP_POP(itemdb->combo_split_atoi, HP_itemdb_combo_split_atoi) }, { HP_POP(itemdb->read_combos, HP_itemdb_read_combos) }, { HP_POP(itemdb->gendercheck, HP_itemdb_gendercheck) }, diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc index f16f7406b..f5e4b5cb0 100644 --- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc @@ -33649,168 +33649,6 @@ int HP_itemdb_isidentified2(struct item_data *data) { } return retVal___; } -bool HP_itemdb_read_itemavail(char *str[], int columns, int current) { - int hIndex = 0; - bool retVal___ = false; - if( HPMHooks.count.HP_itemdb_read_itemavail_pre ) { - bool (*preHookFunc) (char *str[], int *columns, int *current); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_itemavail_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_itemdb_read_itemavail_pre[hIndex].func; - retVal___ = preHookFunc(str, &columns, ¤t); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.itemdb.read_itemavail(str, columns, current); - } - if( HPMHooks.count.HP_itemdb_read_itemavail_post ) { - bool (*postHookFunc) (bool retVal___, char *str[], int *columns, int *current); - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_itemavail_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_itemdb_read_itemavail_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &columns, ¤t); - } - } - return retVal___; -} -bool HP_itemdb_read_itemtrade(char *str[], int columns, int current) { - int hIndex = 0; - bool retVal___ = false; - if( HPMHooks.count.HP_itemdb_read_itemtrade_pre ) { - bool (*preHookFunc) (char *str[], int *columns, int *current); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_itemtrade_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_itemdb_read_itemtrade_pre[hIndex].func; - retVal___ = preHookFunc(str, &columns, ¤t); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.itemdb.read_itemtrade(str, columns, current); - } - if( HPMHooks.count.HP_itemdb_read_itemtrade_post ) { - bool (*postHookFunc) (bool retVal___, char *str[], int *columns, int *current); - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_itemtrade_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_itemdb_read_itemtrade_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &columns, ¤t); - } - } - return retVal___; -} -bool HP_itemdb_read_itemdelay(char *str[], int columns, int current) { - int hIndex = 0; - bool retVal___ = false; - if( HPMHooks.count.HP_itemdb_read_itemdelay_pre ) { - bool (*preHookFunc) (char *str[], int *columns, int *current); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_itemdelay_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_itemdb_read_itemdelay_pre[hIndex].func; - retVal___ = preHookFunc(str, &columns, ¤t); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.itemdb.read_itemdelay(str, columns, current); - } - if( HPMHooks.count.HP_itemdb_read_itemdelay_post ) { - bool (*postHookFunc) (bool retVal___, char *str[], int *columns, int *current); - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_itemdelay_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_itemdb_read_itemdelay_post[hIndex].func; - retVal___ = postHookFunc(retVal___, str, &columns, ¤t); - } - } - return retVal___; -} -bool HP_itemdb_read_stack(char *fields[], int columns, int current) { - int hIndex = 0; - bool retVal___ = false; - if( HPMHooks.count.HP_itemdb_read_stack_pre ) { - bool (*preHookFunc) (char *fields[], int *columns, int *current); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_stack_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_itemdb_read_stack_pre[hIndex].func; - retVal___ = preHookFunc(fields, &columns, ¤t); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.itemdb.read_stack(fields, columns, current); - } - if( HPMHooks.count.HP_itemdb_read_stack_post ) { - bool (*postHookFunc) (bool retVal___, char *fields[], int *columns, int *current); - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_stack_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_itemdb_read_stack_post[hIndex].func; - retVal___ = postHookFunc(retVal___, fields, &columns, ¤t); - } - } - return retVal___; -} -bool HP_itemdb_read_buyingstore(char *fields[], int columns, int current) { - int hIndex = 0; - bool retVal___ = false; - if( HPMHooks.count.HP_itemdb_read_buyingstore_pre ) { - bool (*preHookFunc) (char *fields[], int *columns, int *current); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_buyingstore_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_itemdb_read_buyingstore_pre[hIndex].func; - retVal___ = preHookFunc(fields, &columns, ¤t); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.itemdb.read_buyingstore(fields, columns, current); - } - if( HPMHooks.count.HP_itemdb_read_buyingstore_post ) { - bool (*postHookFunc) (bool retVal___, char *fields[], int *columns, int *current); - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_buyingstore_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_itemdb_read_buyingstore_post[hIndex].func; - retVal___ = postHookFunc(retVal___, fields, &columns, ¤t); - } - } - return retVal___; -} -bool HP_itemdb_read_nouse(char *fields[], int columns, int current) { - int hIndex = 0; - bool retVal___ = false; - if( HPMHooks.count.HP_itemdb_read_nouse_pre ) { - bool (*preHookFunc) (char *fields[], int *columns, int *current); - *HPMforce_return = false; - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_nouse_pre; hIndex++ ) { - preHookFunc = HPMHooks.list.HP_itemdb_read_nouse_pre[hIndex].func; - retVal___ = preHookFunc(fields, &columns, ¤t); - } - if( *HPMforce_return ) { - *HPMforce_return = false; - return retVal___; - } - } - { - retVal___ = HPMHooks.source.itemdb.read_nouse(fields, columns, current); - } - if( HPMHooks.count.HP_itemdb_read_nouse_post ) { - bool (*postHookFunc) (bool retVal___, char *fields[], int *columns, int *current); - for(hIndex = 0; hIndex < HPMHooks.count.HP_itemdb_read_nouse_post; hIndex++ ) { - postHookFunc = HPMHooks.list.HP_itemdb_read_nouse_post[hIndex].func; - retVal___ = postHookFunc(retVal___, fields, &columns, ¤t); - } - } - return retVal___; -} int HP_itemdb_combo_split_atoi(char *str, int *val) { int hIndex = 0; int retVal___ = 0; |