@@ -40,13 +40,15 @@ local canvas
4040local drawstats = {}
4141
4242local function logDump ()
43+ local contentWritten = false
4344 while true do
4445 local logLine = logChannel :pop ()
4546 if not logLine then
4647 break
4748 end
4849 if logFile then
4950 logFile :write (logLine , " \n " )
51+ contentWritten = true
5052 end
5153 if logList and not lldb then
5254 if logList .children [100 ] then
@@ -55,6 +57,9 @@ local function logDump()
5557 logList :addChild (uie .label (logLine ))
5658 end
5759 end
60+ if contentWritten then
61+ logFile :flush ()
62+ end
5863end
5964
6065
@@ -155,6 +160,9 @@ function love.errhand(...)
155160end
156161
157162function love .load (args )
163+ utils = require (" utils" )
164+ log .debug (" This is Olympus.Lua version" , utils .trim (utils .load (" version.txt" ) or " ?" ))
165+
158166 love .window .setDisplaySleepEnabled (true )
159167
160168 local userOS = love .system .getOS ()
@@ -193,7 +201,6 @@ function love.load(args)
193201 end
194202 end
195203
196- utils = require (" utils" )
197204 threader = require (" threader" )
198205
199206 fs = require (" fs" )
@@ -241,8 +248,6 @@ function love.load(args)
241248 log .debug (" SDL2 version" , love .versionSDLStr )
242249 end
243250
244- log .debug (" Olympus version" , utils .trim (utils .load (" version.txt" ) or " ?" ))
245-
246251 ui = require (" ui" )
247252 uie = require (" ui.elements" )
248253 uiu = require (" ui.utils" )
0 commit comments