server/scripts/eressea/xmlconf.lua
Enno Rehling da02c1b92e Use custom URI schemes for config files.
TODO: XML files need to be rebased, XIncludes replaced.
2018-02-05 17:46:11 +01:00

10 lines
529 B
Lua

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