server/game-e3/setup.lua
2010-08-08 09:40:42 +02:00

15 lines
356 B
Lua

local srcpath = config.source_dir
local respath = srcpath .. '/eressea/res'
local paths = {
'eressea/scripts/?.lua',
'server/scripts/?.lua',
'external/lunit/?.lua'
}
for idx, path in pairs(paths) do
package.path = srcpath .. '/' .. path .. ';' .. package.path
end
read_xml(respath..'/config-e3a.xml', respath..'/catalog-e3a.xml')
require "init"