server/game/setup.lua

16 lines
331 B
Lua
Raw Normal View History

2010-08-08 10:06:34 +02:00
local srcpath = config.source_dir
local respath = srcpath .. '/res'
2010-08-08 10:06:34 +02:00
local paths = {
'scripts/?.lua',
'core/scripts/?.lua',
'lunit/?.lua'
2010-08-08 10:06:34 +02:00
}
for idx, path in pairs(paths) do
package.path = srcpath .. '/' .. path .. ';' .. package.path
end
read_xml(respath..'/config-arda.xml', respath..'/catalog-arda.xml')
2010-08-08 10:06:34 +02:00
require "init"