mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Updating loader so that it allows to load complete mission scripts for mission designers from other paths.
This commit is contained in:
@@ -7,7 +7,7 @@ __Moose = {}
|
||||
__Moose.Include = function( IncludeFile )
|
||||
if not __Moose.Includes[ IncludeFile ] then
|
||||
__Moose.Includes[IncludeFile] = IncludeFile
|
||||
local f = assert( base.loadfile( __Moose.ProgramPath .. IncludeFile ) )
|
||||
local f = assert( base.loadfile( IncludeFile ) )
|
||||
if f == nil then
|
||||
error ("Moose: Could not load Moose file " .. IncludeFile )
|
||||
else
|
||||
@@ -17,6 +17,4 @@ __Moose.Include = function( IncludeFile )
|
||||
end
|
||||
end
|
||||
|
||||
__Moose.ProgramPath = "Scripts/Moose/"
|
||||
|
||||
__Moose.Includes = {}
|
||||
|
||||
Reference in New Issue
Block a user