mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Release test
This commit is contained in:
@@ -1,21 +1,21 @@
|
||||
|
||||
local base = _G
|
||||
|
||||
__Moose = {}
|
||||
MOOSE = {}
|
||||
|
||||
__Moose.Include = function( LuaPath, IncludeFile )
|
||||
if not __Moose.Includes[ IncludeFile ] then
|
||||
__Moose.Includes[IncludeFile] = IncludeFile
|
||||
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 )
|
||||
error ("MOOSE: Could not load Moose file " .. IncludeFile )
|
||||
else
|
||||
env.info( "Moose: " .. IncludeFile .. " dynamically loaded from " .. LuaPath )
|
||||
env.info( "MOOSE: " .. IncludeFile .. " dynamically loaded from " .. LuaPath )
|
||||
return f()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
__Moose.ProgramPath = "Scripts/Moose/"
|
||||
MOOSE.ProgramPath = "Scripts/Moose/"
|
||||
|
||||
__Moose.Includes = {}
|
||||
MOOSE.Includes = {}
|
||||
|
||||
Reference in New Issue
Block a user