summaryrefslogtreecommitdiff
path: root/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
diff options
context:
space:
mode:
authorHercules.ws <Hercules@efficiently.awesome>2015-01-24 16:14:30 +0100
committerHerculesWSAPI <Hercules@efficiently.awesome>2015-01-24 16:14:30 +0100
commitd5f6c4f3977d8921169986529c9ce97b6da343ab (patch)
tree71cf7699222b5a7a5795e98cddf1cadcc78fa2a2 /src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
parent1f40b88a9b27f1437d2d8b2f4c5dcb56a1e477db (diff)
downloadhercules-d5f6c4f3977d8921169986529c9ce97b6da343ab.tar.gz
hercules-d5f6c4f3977d8921169986529c9ce97b6da343ab.tar.bz2
hercules-d5f6c4f3977d8921169986529c9ce97b6da343ab.tar.xz
hercules-d5f6c4f3977d8921169986529c9ce97b6da343ab.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 97d2838b4..c479fe435 100644
--- a/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
+++ b/src/plugins/HPMHooking/HPMHooking_map.Hooks.inc
@@ -39051,6 +39051,32 @@ struct map_zone_data* HP_map_merge_zone(struct map_zone_data *main, struct map_z
}
return retVal___;
}
+void HP_map_zone_clear_single(struct map_zone_data *zone) {
+ int hIndex = 0;
+ if( HPMHooks.count.HP_map_zone_clear_single_pre ) {
+ void (*preHookFunc) (struct map_zone_data *zone);
+ *HPMforce_return = false;
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_clear_single_pre; hIndex++ ) {
+ preHookFunc = HPMHooks.list.HP_map_zone_clear_single_pre[hIndex].func;
+ preHookFunc(zone);
+ }
+ if( *HPMforce_return ) {
+ *HPMforce_return = false;
+ return;
+ }
+ }
+ {
+ HPMHooks.source.map.zone_clear_single(zone);
+ }
+ if( HPMHooks.count.HP_map_zone_clear_single_post ) {
+ void (*postHookFunc) (struct map_zone_data *zone);
+ for(hIndex = 0; hIndex < HPMHooks.count.HP_map_zone_clear_single_post; hIndex++ ) {
+ postHookFunc = HPMHooks.list.HP_map_zone_clear_single_post[hIndex].func;
+ postHookFunc(zone);
+ }
+ }
+ return;
+}
/* mapit */
struct s_mapiterator* HP_mapit_alloc(enum e_mapitflags flags, enum bl_type types) {
int hIndex = 0;