server/core/scripts/setup.lua
Enno Rehling 30e9565ae6 update config files to use game.rules from eressea.ini.
ToDo: set rules from command line with -r
2014-07-23 12:19:24 +02:00

16 lines
481 B
Lua

local srcpath = config.source_dir
local respath = srcpath .. '/' .. config.rules .. '/res/'
local paths = { config.rules..'/scripts/?.lua';'lunit/?.lua','external/lunit/?.lua','scripts/?.lua';'scripts/?' }
tests = {'common'}
for idx, test in pairs(tests) do
tests[idx] = srcpath .. '/scripts/tests/' .. test .. '.lua'
end
for idx, path in pairs(paths) do
package.path = srcpath .. '/' .. path .. ';' .. package.path
end
read_xml('config.xml', 'catalog.xml')
require "init"