summaryrefslogtreecommitdiff
path: root/tools/HPMHookGen/HPMHookGen.pl
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-04-19 13:17:52 +0200
committerHaru <haru@dotalux.com>2014-04-19 13:17:52 +0200
commit1e635c33f2f504e2d7e26e0237ce5782441348f8 (patch)
tree0bfe60d3d74d797b1afbaeca446076ef0890df39 /tools/HPMHookGen/HPMHookGen.pl
parent4f0b43cba1f72600ec9618e0dc07ed2282bbfc10 (diff)
downloadhercules-1e635c33f2f504e2d7e26e0237ce5782441348f8.tar.gz
hercules-1e635c33f2f504e2d7e26e0237ce5782441348f8.tar.bz2
hercules-1e635c33f2f504e2d7e26e0237ce5782441348f8.tar.xz
hercules-1e635c33f2f504e2d7e26e0237ce5782441348f8.zip
Added support for enum bg_queue_types to the HPMHookGen
- Fixes a HPM Hook generator warning in battlegrounds.c Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/HPMHookGen/HPMHookGen.pl')
-rwxr-xr-xtools/HPMHookGen/HPMHookGen.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/HPMHookGen/HPMHookGen.pl b/tools/HPMHookGen/HPMHookGen.pl
index e83d5d9a0..72025f556 100755
--- a/tools/HPMHookGen/HPMHookGen.pl
+++ b/tools/HPMHookGen/HPMHookGen.pl
@@ -217,6 +217,8 @@ sub parse($$) {
$rtinit = ' = BL_NUL';
} elsif ($x =~ /^enum\s+homun_type$/) { # Known enum homun_type
$rtinit = ' = HT_INVALID';
+ } elsif ($x =~ /^enum\s+bg_queue_types$/) { # Known enum bg_queue_types
+ $rtinit = ' = BGQT_INVALID';
} elsif ($x =~ /^struct\s+.*$/ or $x eq 'DBData') { # Structs
$rtinit = '';
$rtmemset = 1;