From 7a276976948fa39e2d329de3b622c34dd0c572ad Mon Sep 17 00:00:00 2001 From: Haru Date: Sat, 20 Aug 2016 18:44:02 +0200 Subject: 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 --- src/login/login.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/login') diff --git a/src/login/login.c b/src/login/login.c index 19293d61b..ae584206f 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1847,7 +1847,8 @@ bool login_config_read(const char *filename, bool imported) if (!loginlog_config_read("conf/common/inter-server.conf", imported)) // Only inter-server retval = false; - // TODO HPM->parseConf(w1, w2, HPCT_LOGIN); + if (!HPM->parse_conf(&config, filename, HPCT_LOGIN, imported)) + retval = false; ShowInfo("Finished reading %s.\n", filename); -- cgit v1.2.3-60-g2f50