mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
22 lines
487 B
Lua
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 = {}
|