Update SRS.lua (#2047)

Fix for config load when not desanitized
This commit is contained in:
Thomas
2023-11-24 06:35:32 +01:00
committed by GitHub
parent cc79dc74d4
commit 62e8302753
+4
View File
@@ -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