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/map/battle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index c564b81cd..01072702d 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -7438,7 +7438,7 @@ bool battle_set_value(const char *param, const char *value) ARR_FIND(0, ARRAYLENGTH(battle_data), i, strcmpi(param, battle_data[i].str) == 0); if (i == ARRAYLENGTH(battle_data)) { - if (HPM->parseConf(param, value, HPCT_BATTLE)) /* if plugin-owned, succeed */ + if (HPM->parse_conf_entry(param, value, HPCT_BATTLE)) /* if plugin-owned, succeed */ return true; return false; // not found } -- cgit v1.2.3-70-g09d2