diff options
author | Haru <haru@dotalux.com> | 2016-08-20 18:44:02 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-20 19:51:19 +0300 |
commit | 9ce085ad98e9b91894a920987c3db959f69e59cf (patch) | |
tree | 97beecb80eb7cb83d677fd913312b805c75f305d /src/map/map.c | |
parent | fd534587c716017a6614ff4499229d0bfda1891b (diff) | |
download | hercules-9ce085ad98e9b91894a920987c3db959f69e59cf.tar.gz hercules-9ce085ad98e9b91894a920987c3db959f69e59cf.tar.bz2 hercules-9ce085ad98e9b91894a920987c3db959f69e59cf.tar.xz hercules-9ce085ad98e9b91894a920987c3db959f69e59cf.zip |
Re-added HPM support for configuration settings
Plugin settings should be relative to the the libconfig file root. For
example, a configuration setting of type HPCT_CHAR will be relative to
the root of conf/char/char-server.conf. In order to add a configuration
entry inside the char_configuration block, the full configuration path
(slash-delimited) should be passed to addCharConf(), as in the
following example:
`addCharConf("char_configuration/my_setting", my_parser_function);`
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c index 40bcd9263..58d2a0803 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -4255,7 +4255,8 @@ bool inter_config_read(const char *filename, bool imported) if (!map->inter_config_read_connection(filename, &config, imported)) retval = false; - // TODO HPM->parseConf(w1, w2, HPCT_MAP_INTER); + if (!HPM->parse_conf(&config, filename, HPCT_MAP_INTER, imported)) + retval = false; // import should overwrite any previous configuration, so it should be called last if (libconfig->lookup_string(&config, "import", &import) == CONFIG_TRUE) { |