This commit is contained in:
Applevangelist
2023-11-23 17:00:38 +01:00
parent fc32252db7
commit a89c96e3c4
3 changed files with 28 additions and 7 deletions

View File

@@ -1216,7 +1216,13 @@ end
-- --Start ATIS
-- atis:Start()
function MSRS:LoadConfigFile(Path,Filename)
if not lfs then
env.info("MSRS - Config load, lfs is not available!",false)
return
end
if not os then
env.info("MSRS - Config load, os is not available!",false)
end
local path = Path or lfs.writedir()..MSRS.ConfigFilePath
local file = Filename or MSRS.ConfigFileName or "Moose_MSRS.lua"
local pathandfile = path..file