From cd47c20adfcc1cdfe25fb09937dd175008d71f9f Mon Sep 17 00:00:00 2001 From: Haru Date: Mon, 14 Sep 2015 17:52:05 +0200 Subject: HPM Hooks Update --- src/plugins/HPMHooking/HPMHooking_map.Hooks.inc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc index f108b901d..fafa4d748 100644 --- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc @@ -60084,31 +60084,32 @@ int HP_script_queue_create(void) { } return retVal___; } -void HP_script_queue_clear(int idx) { +bool HP_script_queue_clear(int idx) { int hIndex = 0; + bool retVal___ = false; if( HPMHooks.count.HP_script_queue_clear_pre ) { - void (*preHookFunc) (int *idx); + bool (*preHookFunc) (int *idx); *HPMforce_return = false; for(hIndex = 0; hIndex < HPMHooks.count.HP_script_queue_clear_pre; hIndex++ ) { preHookFunc = HPMHooks.list.HP_script_queue_clear_pre[hIndex].func; - preHookFunc(&idx); + retVal___ = preHookFunc(&idx); } if( *HPMforce_return ) { *HPMforce_return = false; - return; + return retVal___; } } { - HPMHooks.source.script.queue_clear(idx); + retVal___ = HPMHooks.source.script.queue_clear(idx); } if( HPMHooks.count.HP_script_queue_clear_post ) { - void (*postHookFunc) (int *idx); + bool (*postHookFunc) (bool retVal___, int *idx); for(hIndex = 0; hIndex < HPMHooks.count.HP_script_queue_clear_post; hIndex++ ) { postHookFunc = HPMHooks.list.HP_script_queue_clear_post[hIndex].func; - postHookFunc(&idx); + retVal___ = postHookFunc(retVal___, &idx); } } - return; + return retVal___; } const char* HP_script_parse_curly_close(const char *p) { int hIndex = 0; -- cgit v1.2.3-60-g2f50