FlightControl_Master 131db74630 Release test
2017-11-10 10:58:05 +01:00

22 lines
487 B
Lua

local base = _G
MOOSE = {}
MOOSE.Include = function( LuaPath, IncludeFile )
if not MOOSE.Includes[ IncludeFile ] then
MOOSE.Includes[IncludeFile] = IncludeFile
local f = assert( base.loadfile( LuaPath .. IncludeFile ) )
if f == nil then
error ("MOOSE: Could not load Moose file " .. IncludeFile )
else
env.info( "MOOSE: " .. IncludeFile .. " dynamically loaded from " .. LuaPath )
return f()
end
end
end
MOOSE.ProgramPath = "Scripts/Moose/"
MOOSE.Includes = {}