summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2016-03-11 12:31:25 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2016-03-11 12:31:25 +0100
commit4e7fd32f6d75d41e8ae50ef139dc10a8c6f6f379 (patch)
tree525d7ef994739ccb1f9f5fc0ed704ccc7929762e /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parent98c1de6a66535311491899db52dc5aed52d98484 (diff)
downloadhercules-4e7fd32f6d75d41e8ae50ef139dc10a8c6f6f379.tar.gz
hercules-4e7fd32f6d75d41e8ae50ef139dc10a8c6f6f379.tar.bz2
hercules-4e7fd32f6d75d41e8ae50ef139dc10a8c6f6f379.tar.xz
hercules-4e7fd32f6d75d41e8ae50ef139dc10a8c6f6f379.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_map.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_map.Hooks.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
index f8d5193e1..a94651c16 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -62133,6 +62133,32 @@ void HP_script_constdb_comment(const char *comment) {
}
return;
}
+void HP_script_load_parameters(void) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_script_load_parameters_pre ) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_script_load_parameters_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_script_load_parameters_pre[hIndex].func;
+ preHookFunc();
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.script.load_parameters();
+ }
+ if( HPMHooks.count.HP_script_load_parameters_post ) {
+ void (*postHookFunc) (void);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_script_load_parameters_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_script_load_parameters_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
const char* HP_script_print_line(StringBuf *buf, const char *p, const char *mark, int line) {
int hIndex = 0;
const char* retVal___ = NULL;