2014-08-12 22:54:55 +02:00
|
|
|
local confdir = 'conf/'
|
|
|
|
if config.install then
|
|
|
|
confdir = config.install .. '/' .. confdir
|
|
|
|
end
|
2014-10-29 19:40:09 +01:00
|
|
|
if config.rules then
|
2015-05-24 09:09:34 +02:00
|
|
|
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")
|
2014-10-29 19:40:09 +01:00
|
|
|
end
|
2017-02-11 17:38:39 +01:00
|
|
|
eressea.game.reset()
|