summaryrefslogtreecommitdiff
path: root/tools/HPMHookGen/HPMDataCheckGen.pl
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-06-16 03:05:58 +0200
committerHaru <haru@dotalux.com>2015-06-19 13:01:03 +0200
commite9223da7d71f28a3b803e2283387960aeeb6d77a (patch)
tree99b5f58124034e376500751fa4a4ab8f775cf4c3 /tools/HPMHookGen/HPMDataCheckGen.pl
parentd32babc2bcba159a83238882df9b35c11d512eb4 (diff)
downloadhercules-e9223da7d71f28a3b803e2283387960aeeb6d77a.tar.gz
hercules-e9223da7d71f28a3b803e2283387960aeeb6d77a.tar.bz2
hercules-e9223da7d71f28a3b803e2283387960aeeb6d77a.tar.xz
hercules-e9223da7d71f28a3b803e2283387960aeeb6d77a.zip
Fixed an issue causing some structs to be missing from the HPMDataCheck
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/HPMHookGen/HPMDataCheckGen.pl')
-rw-r--r--tools/HPMHookGen/HPMDataCheckGen.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/HPMHookGen/HPMDataCheckGen.pl b/tools/HPMHookGen/HPMDataCheckGen.pl
index 06b58127a..0e5f628cd 100644
--- a/tools/HPMHookGen/HPMDataCheckGen.pl
+++ b/tools/HPMHookGen/HPMDataCheckGen.pl
@@ -26,6 +26,7 @@ foreach my $file (@files) {
next if $data->{compounddef}->{$filekey}->{compoundname}->[0] =~ /::/; # its a duplicate with a :: name e.g. struct script_state {<...>} ay;
my @filepath = split(/[\/\\]/, $data->{compounddef}->{$filekey}->{location}->[0]->{file});
my $foldername = uc($filepath[-2]);
+ next if $filepath[-1] eq "HPM.h"; # Skip the HPM core, plugins don't need it
my $filename = uc($filepath[-1]); $filename =~ s/-/_/g; $filename =~ s/\.[^.]*$//;
my $plugintypes = 'SERVER_TYPE_UNKNOWN';
$plugintypes = 'SERVER_TYPE_ALL' if $foldername eq 'COMMON';