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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1216,7 +1216,11 @@ end
-- --Start ATIS
-- atis:Start()
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 file = Filename or MSRS.ConfigFileName or "Moose_MSRS.lua"
local pathandfile = path..file