Merge pull request #1 from ckx000/master

fix WINWING compatibility
This commit is contained in:
Bailey 2022-01-20 01:29:53 +09:00 committed by GitHub
commit 3f18afb097
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
end