server/scripts/eressea/xmlconf.lua
Enno Rehling 91ec503b43 fix the mapper script.
1. move xml configuration reading to a separate module, it's compliated.
2. move the map file to the main scripts folder.
2014-08-12 22:54:55 +02:00

8 lines
228 B
Lua

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