mirror of
https://github.com/weyne85/DCS-ExportScripts.git
synced 2025-10-29 16:58:18 +00:00
rename "ExportScript.Config.DACListener*" to "ExportScript.Config.Listener*"
This commit is contained in:
parent
69a8885ce4
commit
560f107f65
@ -57,18 +57,21 @@ function LuaExportStart()
|
|||||||
ExportScript.UDPsender:setoption('broadcast', true)
|
ExportScript.UDPsender:setoption('broadcast', true)
|
||||||
ExportScript.UDPsender:settimeout(.001) -- set the timeout for reading the socket
|
ExportScript.UDPsender:settimeout(.001) -- set the timeout for reading the socket
|
||||||
|
|
||||||
if ExportScript.Config.DACListener then
|
if ExportScript.Config.Listener then
|
||||||
ExportScript.UDPListener = ExportScript.socket.udp()
|
ExportScript.UDPListener = ExportScript.socket.udp()
|
||||||
ExportScript.UDPListener:setsockname("*", ExportScript.Config.DACListenerPort)
|
ExportScript.UDPListener:setsockname("*", ExportScript.Config.ListenerPort)
|
||||||
ExportScript.UDPListener:setoption('broadcast', true)
|
ExportScript.UDPListener:setoption('broadcast', true)
|
||||||
ExportScript.UDPListener:settimeout(.001) -- set the timeout for reading the socket
|
ExportScript.UDPListener:settimeout(.001) -- set the timeout for reading the socket
|
||||||
end
|
end
|
||||||
|
|
||||||
-- local lrename1, lrename2 = os.rename(ExportScript.Config.LogPath, ExportScript.Config.LogPath..".old")
|
--local lrename1, lrename2 = os.rename(ExportScript.Config.LogPath, ExportScript.Config.LogPath..".old")
|
||||||
ExportScript.logFile = io.open(ExportScript.Config.LogPath, "w+")
|
ExportScript.logFile = io.open(ExportScript.Config.LogPath, "w+")
|
||||||
-- if lrenmae1 == nil then
|
if ExportScript.logFile then
|
||||||
-- ExportScript.Tools.WriteToLog("Rename Error: "..lrename2)
|
ExportScript.logFile:write('\239\187\191') -- create a UTF-8 BOM
|
||||||
-- end
|
end
|
||||||
|
--if lrenmae1 == nil then
|
||||||
|
-- ExportScript.Tools.WriteToLog("Rename Error: "..lrename2)
|
||||||
|
--end
|
||||||
|
|
||||||
ExportScript.AF = {} -- Table for Auxiliary functions
|
ExportScript.AF = {} -- Table for Auxiliary functions
|
||||||
|
|
||||||
@ -76,7 +79,7 @@ function LuaExportStart()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function LuaExportBeforeNextFrame()
|
function LuaExportBeforeNextFrame()
|
||||||
ExportScript.Tools.ProcessInput()
|
ExportScript.Tools.ProcessInput()
|
||||||
end
|
end
|
||||||
|
|
||||||
function LuaExportAfterNextFrame()
|
function LuaExportAfterNextFrame()
|
||||||
@ -93,7 +96,7 @@ function LuaExportStop()
|
|||||||
ExportScript.Tools.FlushData()
|
ExportScript.Tools.FlushData()
|
||||||
|
|
||||||
ExportScript.UDPsender:close()
|
ExportScript.UDPsender:close()
|
||||||
if ExportScript.Config.DACListener then
|
if ExportScript.Config.Listener then
|
||||||
ExportScript.UDPListener:close()
|
ExportScript.UDPListener:close()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user