Soundfile - missing backslash

This commit is contained in:
Applevangelist 2022-04-10 18:26:27 +02:00
parent 4c79349b8d
commit b24f31922f

View File

@ -183,7 +183,7 @@ do -- Sound File
--- Set path, where the sound file is located. --- Set path, where the sound file is located.
-- @param #SOUNDFILE self -- @param #SOUNDFILE self
-- @param #string Path Path to the directory, where the sound file is located. -- @param #string Path Path to the directory, where the sound file is located. In case this is nil, it defaults to the DCS mission temp directory.
-- @return #SOUNDFILE self -- @return #SOUNDFILE self
function SOUNDFILE:SetPath(Path) function SOUNDFILE:SetPath(Path)
@ -191,7 +191,7 @@ do -- Sound File
self.path=Path or "l10n/DEFAULT/" self.path=Path or "l10n/DEFAULT/"
if not Path and self.useSRS then -- use path to mission temp dir if not Path and self.useSRS then -- use path to mission temp dir
self.path = os.getenv('TMP') .. "\\DCS\\Mission\\l10n\DEFAULT" self.path = os.getenv('TMP') .. "\\DCS\\Mission\\l10n\\DEFAULT"
end end
-- Remove (back)slashes. -- Remove (back)slashes.