server/scripts/eressea/xmlconf.lua
2017-02-11 17:38:39 +01:00

10 lines
434 B
Lua

local confdir = 'conf/'
if config.install then
confdir = config.install .. '/' .. confdir
end
if config.rules then
local rules = config.rules .. '/'
assert(0 == read_xml(confdir .. rules .. 'config.xml', confdir .. rules .. 'catalog.xml'), "could not load XML data, did you compile with LIBXML2 ?")
assert(0 == eressea.config.read(rules .. 'config.json', confdir), "could not read JSON data")
end
eressea.game.reset()