server/game/setup.lua
2013-12-27 01:58:35 +01:00

15 lines
331 B
Lua

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