mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Update SRS.lua
Fix for config load when not desanitized
This commit is contained in:
parent
427a11bd0f
commit
cac7b39823
@ -1217,6 +1217,10 @@ end
|
|||||||
-- atis:Start()
|
-- atis:Start()
|
||||||
function MSRS:LoadConfigFile(Path,Filename)
|
function MSRS:LoadConfigFile(Path,Filename)
|
||||||
|
|
||||||
|
if lfs == nil then
|
||||||
|
env.info("*****Note - lfs and os need to be desanitized for MSRS to work!")
|
||||||
|
return false
|
||||||
|
end
|
||||||
local path = Path or lfs.writedir()..MSRS.ConfigFilePath
|
local path = Path or lfs.writedir()..MSRS.ConfigFilePath
|
||||||
local file = Filename or MSRS.ConfigFileName or "Moose_MSRS.lua"
|
local file = Filename or MSRS.ConfigFileName or "Moose_MSRS.lua"
|
||||||
local pathandfile = path..file
|
local pathandfile = path..file
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user