summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2014-11-15 17:33:46 +0100
committerHaruna <haru@dotalux.com>2014-11-15 17:33:46 +0100
commit27cd926dd2f41e008da738e8d9259cd0c33a2f77 (patch)
treefc62c34bea003f6d5839996474485d51ddf98ad6 /src/map/script.c
parent47565d423f40f4fbbbb032dcc6fa2f6670bfafab (diff)
parent35d190c1927d4405507490ac1a34c3e324d47762 (diff)
downloadhercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.tar.gz
hercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.tar.bz2
hercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.tar.xz
hercules-27cd926dd2f41e008da738e8d9259cd0c33a2f77.zip
Merge pull request #389 from 4144/confplugins
Add support for plugin parameters in different config files (before was only battle config)
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 56bccbdec..aa90a5b1c 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -55,6 +55,7 @@
#include "../common/sysinfo.h"
#include "../common/timer.h"
#include "../common/utils.h"
+#include "../common/HPM.h"
#ifndef WIN32
#include <sys/time.h>
@@ -4141,7 +4142,9 @@ int script_config_read(char *cfgName) {
else if(strcmpi(w1,"import")==0) {
script->config_read(w2);
}
- else {
+ else if(HPM->parseConf(w1, w2, HPCT_SCRIPT)) {
+ ; // handled by plugin
+ } else {
ShowWarning("Unknown setting '%s' in file %s\n", w1, cfgName);
}
}