added some ocemu-related debug modules

This commit is contained in:
Izaya 2017-06-12 23:40:56 +00:00
parent c1e9e31cf0
commit 36442751b9
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,7 @@
s("ocemu display server",function()
while true do
if ev[1] == "display" then
component.invoke(component.list("ocemu")(),"log",ev[2] or "")
end
end
end)

View File

@ -0,0 +1,9 @@
_G.DEBUG=true
s("heartbeat",function()
while true do
if _G.DEBUG then
component.invoke(component.list("ocemu")(),"log","heartbeat:"..tostring(computer.uptime()))
end
C.yield()
end
end)