From 61fc83fd7dd51e9a88ac7e6264692fcf561a37f7 Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 15 Nov 2014 04:00:54 +0100 Subject: Corrected an issue in the HPMHookGen when interfaces only have one member - Fixed hooks/symbols generation for the inter_quest interface - Re-enabled strict mode Signed-off-by: Haru --- src/plugins/HPMHooking/HPMHooking_char.Hooks.inc | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src/plugins/HPMHooking/HPMHooking_char.Hooks.inc') diff --git a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc index 8a775ccfd..8a602686f 100644 --- a/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc +++ b/src/plugins/HPMHooking/HPMHooking_char.Hooks.inc @@ -6612,6 +6612,34 @@ int HP_inter_pet_parse_frommap(int fd) { } return retVal___; } +/* inter_quest */ +int HP_inter_quest_parse_frommap(int fd) { + int hIndex = 0; + int retVal___ = 0; + if( HPMHooks.count.HP_inter_quest_parse_frommap_pre ) { + int (*preHookFunc) (int *fd); + *HPMforce_return = false; + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_quest_parse_frommap_pre; hIndex++ ) { + preHookFunc = HPMHooks.list.HP_inter_quest_parse_frommap_pre[hIndex].func; + retVal___ = preHookFunc(&fd); + } + if( *HPMforce_return ) { + *HPMforce_return = false; + return retVal___; + } + } + { + retVal___ = HPMHooks.source.inter_quest.parse_frommap(fd); + } + if( HPMHooks.count.HP_inter_quest_parse_frommap_post ) { + int (*postHookFunc) (int retVal___, int *fd); + for(hIndex = 0; hIndex < HPMHooks.count.HP_inter_quest_parse_frommap_post; hIndex++ ) { + postHookFunc = HPMHooks.list.HP_inter_quest_parse_frommap_post[hIndex].func; + retVal___ = postHookFunc(retVal___, &fd); + } + } + return retVal___; +} /* inter_storage */ int HP_inter_storage_tosql(int account_id, struct storage_data *p) { int hIndex = 0; -- cgit v1.2.3-70-g09d2