mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Documentation fixes. (#1811)
Update documentation text and links. Fix spelling errors. Other minor adjustments where appropriate, such as remove whitespaces and format code.
This commit is contained in:
@@ -22,37 +22,37 @@ _DATABASE:_RegisterAirbases()
|
||||
|
||||
--- Check if os etc is available.
|
||||
BASE:I("Checking de-sanitization of os, io and lfs:")
|
||||
local __na=false
|
||||
local __na = false
|
||||
if os then
|
||||
BASE:I("- os available")
|
||||
else
|
||||
BASE:I("- os NOT available! Some functions may not work.")
|
||||
__na=true
|
||||
__na = true
|
||||
end
|
||||
if io then
|
||||
BASE:I("- io available")
|
||||
else
|
||||
BASE:I("- io NOT available! Some functions may not work.")
|
||||
__na=true
|
||||
__na = true
|
||||
end
|
||||
if lfs then
|
||||
BASE:I("- lfs available")
|
||||
else
|
||||
BASE:I("- lfs NOT available! Some functions may not work.")
|
||||
__na=true
|
||||
__na = true
|
||||
end
|
||||
if __na then
|
||||
BASE:I("Check <DCS install folder>/Scripts/MissionScripting.lua and comment out the lines with sanitizeModule(''). Use at your own risk!)")
|
||||
end
|
||||
BASE.ServerName="Unknown"
|
||||
BASE.ServerName = "Unknown"
|
||||
if lfs and loadfile then
|
||||
local serverfile=lfs.writedir() .. 'Config/serverSettings.lua'
|
||||
local serverfile = lfs.writedir() .. 'Config/serverSettings.lua'
|
||||
if UTILS.FileExists(serverfile) then
|
||||
loadfile(serverfile)()
|
||||
if cfg and cfg.name then
|
||||
BASE.ServerName=cfg.name
|
||||
BASE.ServerName = cfg.name
|
||||
end
|
||||
end
|
||||
BASE.ServerName=BASE.ServerName or "Unknown"
|
||||
BASE:I("Server Name: "..tostring(BASE.ServerName))
|
||||
BASE.ServerName = BASE.ServerName or "Unknown"
|
||||
BASE:I("Server Name: " .. tostring(BASE.ServerName))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user