From 3dc284335ed1b306d2c267385c78f080375f7056 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Sun, 10 Apr 2022 14:59:54 +0200 Subject: [PATCH] SoundOutput - Honor self.useSRS to find a path to sound files located inside the miz folder --- Moose Development/Moose/Sound/SoundOutput.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Sound/SoundOutput.lua b/Moose Development/Moose/Sound/SoundOutput.lua index 01fd00483..7788c0574 100644 --- a/Moose Development/Moose/Sound/SoundOutput.lua +++ b/Moose Development/Moose/Sound/SoundOutput.lua @@ -189,7 +189,11 @@ do -- Sound File -- Init path. self.path=Path or "l10n/DEFAULT/" - + + if not Path and self.useSRS then -- use path to mission temp dir + self.path = os.getenv('TMP') .. "\\DCS\\Mission\\l10n\DEFAULT" + end + -- Remove (back)slashes. local nmax=1000 ; local n=1 while (self.path:sub(-1)=="/" or self.path:sub(-1)==[[\]]) and n<=nmax do