Went back to single script for luadebug

This commit is contained in:
U-ENGINEERO\joppe.blondel
2025-10-27 14:39:55 +01:00
parent 349cbc8175
commit fa0c8d5a2c
5 changed files with 141 additions and 206 deletions

View File

@ -34,7 +34,9 @@ function shell:run(target, name)
coroutine.yield(0.016) -- 60FPS
local sout = self.proc:read_stdout()
local serr = self.proc:read_stderr()
if sout == nil and serr == nil then
if sout == nil or serr == nil then
-- Make sure to read stderr for the last time
if serr and serr~="" then self.on_stderr(serr) end
local exitcode = self.proc:wait(process.WAIT_INFINITE)
self.on_exit(exitcode)
break