server/scripts/eressea/xmlconf.lua

10 lines
295 B
Lua

local confdir = 'conf/'
if config.install then
confdir = config.install .. '/' .. confdir
end
rules=''
if config.rules then
rules = config.rules .. '/'
end
read_xml(confdir .. rules .. 'config.xml', confdir .. rules .. 'catalog.xml')
eressea.config.read(rules .. 'config.json', confdir)