* Added loading of a config file
This commit is contained in:
Applevangelist
2023-10-17 11:05:09 +02:00
parent 2ebad9ce96
commit 65f9db8efa
4 changed files with 307 additions and 75 deletions

View File

@@ -1524,7 +1524,7 @@ end
-- @param #string GoogleKey Path to Google JSON-Key.
-- @return #ATIS self
function ATIS:SetSRS(PathToSRS, Gender, Culture, Voice, Port, GoogleKey)
if PathToSRS then
if PathToSRS or MSRS.path then
self.useSRS=true
self.msrs=MSRS:New(PathToSRS, self.frequency, self.modulation)
self.msrs:SetGender(Gender)
@@ -1555,7 +1555,7 @@ end
--- Get the coalition of the associated airbase.
-- @param #ATIS self
-- @return #number Coalition of the associcated airbase.
-- @return #number Coalition of the associated airbase.
function ATIS:GetCoalition()
local coal = self.airbase and self.airbase:GetCoalition() or nil
return coal