mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
f3c8b4c1cd
@ -1329,6 +1329,7 @@ function EVENT:onEvent( Event )
|
|||||||
end
|
end
|
||||||
|
|
||||||
Event.IniDCSGroupName = Event.IniUnit and Event.IniUnit.GroupName or ""
|
Event.IniDCSGroupName = Event.IniUnit and Event.IniUnit.GroupName or ""
|
||||||
|
Event.IniGroupName=Event.IniDCSGroupName --At least set the group name because group might not exist any more
|
||||||
if Event.IniDCSGroup and Event.IniDCSGroup:isExist() then
|
if Event.IniDCSGroup and Event.IniDCSGroup:isExist() then
|
||||||
Event.IniDCSGroupName = Event.IniDCSGroup:getName()
|
Event.IniDCSGroupName = Event.IniDCSGroup:getName()
|
||||||
Event.IniGroup = GROUP:FindByName( Event.IniDCSGroupName )
|
Event.IniGroup = GROUP:FindByName( Event.IniDCSGroupName )
|
||||||
|
|||||||
@ -1490,7 +1490,7 @@ function MSRS:_ExecCommand(command)
|
|||||||
|
|
||||||
elseif self.UsePowerShell == true then
|
elseif self.UsePowerShell == true then
|
||||||
|
|
||||||
local pwsh = string.format('powershell.exe -ExecutionPolicy Unrestricted -WindowStyle Hidden -Command "%s"',filename)
|
local pwsh = string.format('start /min "" powershell.exe -ExecutionPolicy Unrestricted -WindowStyle Hidden -Command "%s"',filename)
|
||||||
--env.info("[MSRS] TextToSpeech Command :\n" .. pwsh.."\n")
|
--env.info("[MSRS] TextToSpeech Command :\n" .. pwsh.."\n")
|
||||||
|
|
||||||
if string.len(pwsh) > 255 then
|
if string.len(pwsh) > 255 then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user