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