From ae5c108b4f1bc18b6ea5af6f4a96d639a27dcb10 Mon Sep 17 00:00:00 2001 From: ckx000 Date: Thu, 30 Dec 2021 00:04:42 +0800 Subject: [PATCH] fix WINWING compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复与成都造(WINWING)灯光同步的兼容性 --- Scripts/DCS-ExportScript/ExportScript.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Scripts/DCS-ExportScript/ExportScript.lua b/Scripts/DCS-ExportScript/ExportScript.lua index 8db0f89..650929e 100644 --- a/Scripts/DCS-ExportScript/ExportScript.lua +++ b/Scripts/DCS-ExportScript/ExportScript.lua @@ -30,6 +30,8 @@ PrevExport.LuaExportStart = LuaExportStart PrevExport.LuaExportStop = LuaExportStop PrevExport.LuaExportBeforeNextFrame = LuaExportBeforeNextFrame PrevExport.LuaExportAfterNextFrame = LuaExportAfterNextFrame +--fix wwt +PrevExport.LuaExportActivityNextEvent = LuaExportActivityNextEvent dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\Config.lua]]) ExportScript.utf8 = dofile(lfs.writedir()..[[Scripts\DCS-ExportScript\lib\utf8.lua]]) @@ -133,7 +135,11 @@ function LuaExportActivityNextEvent(t) end tNext = tNext + ExportScript.Config.ExportInterval - + + if PrevExport.LuaExportActivityNextEvent then + tNext=PrevExport.LuaExportActivityNextEvent(t) + end + return tNext end @@ -170,4 +176,4 @@ function LuaExportStop() if PrevExport.LuaExportStop then PrevExport.LuaExportStop() end -end \ No newline at end of file +end