summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2015-12-16 15:17:34 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2015-12-16 15:17:34 +0100
commitf1506b5a1cf67e66eb441fa5f9a32a1191935929 (patch)
tree719ca64293b443eb0ae03118c872a443b28fd97d /src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
parentd39250a6d5bb8987fcc8d7e8961680f9802fb2e7 (diff)
downloadhercules-f1506b5a1cf67e66eb441fa5f9a32a1191935929.tar.gz
hercules-f1506b5a1cf67e66eb441fa5f9a32a1191935929.tar.bz2
hercules-f1506b5a1cf67e66eb441fa5f9a32a1191935929.tar.xz
hercules-f1506b5a1cf67e66eb441fa5f9a32a1191935929.zip
HPM Hooks Update
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
Diffstat (limited to 'src/plugins/HPMHooking/HPMHooking_char.Hooks.inc')
-rw-r--r--src/plugins/HPMHooking/HPMHooking_char.Hooks.inc26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
index 9f469b7ee..3e9e6e1d2 100644
--- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc
@@ -4562,6 +4562,32 @@ void HP_console_display_title(void) {
}
return;
}
+void HP_console_display_gplnotice(void) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_console_display_gplnotice_pre ) {
+ void (*preHookFunc) (void);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_console_display_gplnotice_pre[hIndex].func;
+ preHookFunc();
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.console.display_gplnotice();
+ }
+ if( HPMHooks.count.HP_console_display_gplnotice_post ) {
+ void (*postHookFunc) (void);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_console_display_gplnotice_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_console_display_gplnotice_post[hIndex].func;
+ postHookFunc();
+ }
+ }
+ return;
+}
/* core */
void HP_core_shutdown_callback(void) {
int hIndex = 0;