server/game-e2/setup.lua

16 lines
340 B
Lua
Raw Normal View History

2010-08-08 09:40:42 +02:00
local srcpath = config.source_dir
2012-06-05 16:36:33 +02:00
local respath = srcpath .. '/res'
2010-08-08 09:40:42 +02:00
local paths = {
2012-06-05 16:36:33 +02:00
'scripts/?.lua',
2010-08-08 09:40:42 +02:00
'eressea/scripts/?.lua',
2012-06-05 16:36:33 +02:00
'lunit/?.lua'
2010-08-08 09:40:42 +02:00
}
for idx, path in pairs(paths) do
package.path = srcpath .. '/' .. path .. ';' .. package.path
end
read_xml(respath..'/config-eressea.xml', respath..'/catalog-eressea.xml')
require "init"