added some ocemu-related debug modules
This commit is contained in:
parent
c1e9e31cf0
commit
36442751b9
|
@ -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)
|
|
@ -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)
|
Loading…
Reference in New Issue