14 lines
259 B
Lua
14 lines
259 B
Lua
if component then
|
|
_G.Log = ""
|
|
function log(...)
|
|
for k,v in ipairs({...}) do
|
|
if component.list("ocemu")() then
|
|
component.invoke(component.list("ocemu")(),"log",v)
|
|
end
|
|
Log=Log..tostring(v).."\n"
|
|
end
|
|
end
|
|
print=log
|
|
else log = print
|
|
end
|