summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2015-12-13 04:04:17 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2015-12-13 04:04:17 +0100
commit0fef78a5e402bc52ac5412f0875f22b7231ad592 (patch)
tree89570ed46c0c9ab92109ab442c1f73a4bce0cba3
parentf102c913b2aa093ef40c7846e25850ebb1106d71 (diff)
downloadhercules-0fef78a5e402bc52ac5412f0875f22b7231ad592.tar.gz
hercules-0fef78a5e402bc52ac5412f0875f22b7231ad592.tar.bz2
hercules-0fef78a5e402bc52ac5412f0875f22b7231ad592.tar.xz
hercules-0fef78a5e402bc52ac5412f0875f22b7231ad592.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index d0c832d8d..893d63ae4 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -2344,15 +2344,15 @@ int HP_battle_config_set_value(const char *w1, const char *w2) {
}
return retVal___;
}
-int HP_battle_config_get_value(const char *w1) {
+bool HP_battle_config_get_value(const char *w1, int *value) {
int hIndex = 0;
- int retVal___ = 0;
+ bool retVal___ = false;
if( HPMHooks.count.HP_battle_config_get_value_pre ) {
- int (*preHookFunc) (const char *w1);
+ bool (*preHookFunc) (const char *w1, int *value);
*HPMforce_return = false;
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_config_get_value_pre; hIndex++ ) {
preHookFunc = HPMHooks.list.HP_battle_config_get_value_pre[hIndex].func;
- retVal___ = preHookFunc(w1);
+ retVal___ = preHookFunc(w1, value);
}
if( *HPMforce_return ) {
*HPMforce_return = false;
@@ -2360,13 +2360,13 @@ int HP_battle_config_get_value(const char *w1) {
}
}
{
- retVal___ = HPMHooks.source.battle.config_get_value(w1);
+ retVal___ = HPMHooks.source.battle.config_get_value(w1, value);
}
if( HPMHooks.count.HP_battle_config_get_value_post ) {
- int (*postHookFunc) (int retVal___, const char *w1);
+ bool (*postHookFunc) (bool retVal___, const char *w1, int *value);
for(hIndex = 0; hIndex < HPMHooks.count.HP_battle_config_get_value_post; hIndex++ ) {
postHookFunc = HPMHooks.list.HP_battle_config_get_value_post[hIndex].func;
- retVal___ = postHookFunc(retVal___, w1);
+ retVal___ = postHookFunc(retVal___, w1, value);
}
}
return retVal___;