summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2013-12-05 12:07:26 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2013-12-05 12:07:26 +0100
commit9ce970bccc98f3004b14eaf11925d7d7841bf2d8 (patch)
treebebb9eedc64e283f8c242250b79da782e7b16d37 /src/plugins/HPMHooking/HPMHooking.Hooks.inc
parent4d1f7cc5aad1f5b541894bb1d458fe09d46f626e (diff)
downloadhercules-9ce970bccc98f3004b14eaf11925d7d7841bf2d8.tar.gz
hercules-9ce970bccc98f3004b14eaf11925d7d7841bf2d8.tar.bz2
hercules-9ce970bccc98f3004b14eaf11925d7d7841bf2d8.tar.xz
hercules-9ce970bccc98f3004b14eaf11925d7d7841bf2d8.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking.Hooks.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking.Hooks.inc b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
index bccfe226a..4ba06eba4 100644
--- a/src/plugins/HPMHooking/HPMHooking.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking.Hooks.inc
@@ -51372,6 +51372,32 @@ struct script_code* HP_script_parse(const char *src, const char *file, int line,
}
return retVal___;
}
+bool HP_script_add_builtin(const struct script_function *buildin, bool override) {
+ int hIndex = 0;
+ bool retVal___ = false;
+ if( HPMHooks.count.HP_script_add_builtin_pre ) {
+ bool (*preHookFunc) (const struct script_function *buildin, bool *override);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_script_add_builtin_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_script_add_builtin_pre[hIndex].func;
+ retVal___ = preHookFunc(buildin, &override);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return retVal___;
+ }
+ }
+ {
+ retVal___ = HPMHooks.source.script.add_builtin(buildin, override);
+ }
+ if( HPMHooks.count.HP_script_add_builtin_post ) {
+ bool (*postHookFunc) (bool retVal___, const struct script_function *buildin, bool *override);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_script_add_builtin_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_script_add_builtin_post[hIndex].func;
+ retVal___ = postHookFunc(retVal___, buildin, &override);
+ }
+ }
+ return retVal___;
+}
void HP_script_parse_builtin(void) {
int hIndex = 0;
if( HPMHooks.count.HP_script_parse_builtin_pre ) {