diff options
author | Hercules.ws <Hercules@efficiently.awesome> | 2015-12-16 15:17:34 +0100 |
---|---|---|
committer | HerculesWSAPI <Hercules@efficiently.awesome> | 2015-12-16 15:17:34 +0100 |
commit | f1506b5a1cf67e66eb441fa5f9a32a1191935929 (patch) | |
tree | 719ca64293b443eb0ae03118c872a443b28fd97d /src/plugins/HPMHooking/HPMHooking_login.Hooks.inc | |
parent | d39250a6d5bb8987fcc8d7e8961680f9802fb2e7 (diff) | |
download | hercules-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_login.Hooks.inc')
-rw-r--r-- | src/plugins/HPMHooking/HPMHooking_login.Hooks.inc | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc index fe329333a..012240bb3 100644 --- a/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_login.Hooks.inc @@ -344,6 +344,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; |