diff options
author | Haru <haru@dotalux.com> | 2016-02-12 12:43:14 +0100 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-08-19 21:32:23 +0200 |
commit | aa3a3f43b677f1646cc53f7a89ad11cdfd2fcc57 (patch) | |
tree | 764ef66928897fa988ca6ac9138a0d7852056080 /tools | |
parent | 3f85b17f494a465daaf0cc8acb151d5d4ebbaa5d (diff) | |
download | hercules-aa3a3f43b677f1646cc53f7a89ad11cdfd2fcc57.tar.gz hercules-aa3a3f43b677f1646cc53f7a89ad11cdfd2fcc57.tar.bz2 hercules-aa3a3f43b677f1646cc53f7a89ad11cdfd2fcc57.tar.xz hercules-aa3a3f43b677f1646cc53f7a89ad11cdfd2fcc57.zip |
Ported script.conf to libconfig
Ported to modern Hercules and cleaned up from Panikon's commits: a0e4da63ef3afcd896603398e2468876681ac54a, b5f487c2676833492a6d4044b5d1f1bb1e552b04
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/configconverter.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/configconverter.pl b/tools/configconverter.pl index db34de2fd..958286c49 100755 --- a/tools/configconverter.pl +++ b/tools/configconverter.pl @@ -502,6 +502,18 @@ my @defaults = ( import => {parse => \&parsecfg_string, print => \&printcfg_nil, path => "", default => "conf/import/log_conf.txt"}, } }, + { + files => ['script.conf', 'import/script_conf.txt'], + settings => { + warn_func_mismatch_paramnum => {parse => \&parsecfg_bool, print => \&printcfg_bool, path => "script:script_configuration/", default => "true"}, + check_cmdcount => {parse => \&parsecfg_int, print => \&printcfg_int, path => "script:script_configuration/", default => 655360}, + check_gotocount => {parse => \&parsecfg_int, print => \&printcfg_int, path => "script:script_configuration/", default => 2048}, + input_min_value => {parse => \&parsecfg_int, print => \&printcfg_int, path => "script:script_configuration/", default => 0}, + input_max_value => {parse => \&parsecfg_int, print => \&printcfg_int, path => "script:script_configuration/", default => 10000000}, + warn_func_mismatch_argtypes => {parse => \&parsecfg_bool, print => \&printcfg_bool, path => "script:script_configuration/", default => "true"}, + import => {parse => \&parsecfg_string, print => \&printcfg_nil, path => "", default => "conf/import/script_conf.txt"}, + } + }, ); for (@ARGV) { |