diff options
author | Haru <haru@dotalux.com> | 2015-08-09 02:19:17 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-08-15 00:51:43 +0200 |
commit | 74aab882677d4e6ada440232e73b6095c92da407 (patch) | |
tree | 5a802619f76611af4a68ef61ccc7620418904726 /tools/HPMHookGen/HPMDataCheckGen.pl | |
parent | a5f8662606021935e4de8a0540c938896dd4f269 (diff) | |
download | hercules-74aab882677d4e6ada440232e73b6095c92da407.tar.gz hercules-74aab882677d4e6ada440232e73b6095c92da407.tar.bz2 hercules-74aab882677d4e6ada440232e73b6095c92da407.tar.xz hercules-74aab882677d4e6ada440232e73b6095c92da407.zip |
Enabled HPMDataCheck for login and char servers
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools/HPMHookGen/HPMDataCheckGen.pl')
-rw-r--r-- | tools/HPMHookGen/HPMDataCheckGen.pl | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/HPMHookGen/HPMDataCheckGen.pl b/tools/HPMHookGen/HPMDataCheckGen.pl index 791d6cf6b..2f4b02d26 100644 --- a/tools/HPMHookGen/HPMDataCheckGen.pl +++ b/tools/HPMHookGen/HPMDataCheckGen.pl @@ -29,8 +29,15 @@ foreach my $file (@files) { 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'; - $plugintypes = "SERVER_TYPE_${foldername}" if $foldername =~ /^(LOGIN|CHAR|MAP)/; + if ($foldername eq 'COMMON') { + if ($filename eq 'MAPINDEX') { + $plugintypes = 'SERVER_TYPE_CHAR|SERVER_TYPE_MAP'; + } else { + $plugintypes = 'SERVER_TYPE_ALL'; + } + } elsif ($foldername =~ /^(LOGIN|CHAR|MAP)/) { + $plugintypes = "SERVER_TYPE_${foldername}"; + } my $symboldata = { name => $data->{compounddef}->{$filekey}->{compoundname}->[0], type => $plugintypes, |