Changes of loading and cleanup.

Added dynamic and static loading strategies for MOOSE of a mission file.
This commit is contained in:
Sven Van de Velde
2016-02-21 19:34:48 +01:00
parent 0fb88e2bab
commit ecf80e5209
9 changed files with 243 additions and 172 deletions

View File

@@ -0,0 +1,23 @@
local base = _G
env.info("Loading MOOSE " .. base.timer.getAbsTime() )
Include = {}
Include.Path = function()
local str = debug.getinfo(2, "S").source
return str:match("(.*/)"):sub(1,-2):gsub("\\","/")
end
Include.File = function( IncludeFile )
end
Include.ProgramPath = "Scripts/Moose/Moose/"
Include.MissionPath = Include.Path()
env.info( "Include.ProgramPath = " .. Include.ProgramPath)
env.info( "Include.MissionPath = " .. Include.MissionPath)
Include.Files = {}
env.info("Loaded MOOSE Include Engine")