diff --git a/parts/scenes/app_console.lua b/parts/scenes/app_console.lua index 98c8a86e..a7bc6886 100644 --- a/parts/scenes/app_console.lua +++ b/parts/scenes/app_console.lua @@ -832,7 +832,7 @@ local userG={ tonumber=tonumber,tostring=tostring, select=select,next=next, ipairs=ipairs,pairs=pairs, - print=log,type=type, + type=type, pcall=pcall,xpcall=xpcall, rawget=rawget,rawset=rawset,rawlen=rawlen,rawequal=rawequal, setfenv=setfenv,setmetatable=setmetatable, @@ -844,6 +844,21 @@ local userG={ math={},string={},table={},bit={},coroutine={}, debug={"No way."},package={"No way."},io={"No way."},os={"No way."}, } +function userG.print(...) + local args,L={...},{} + for k,v in next,args do ins(L,{k,v})end + table.sort(L,function(a,b)return a[1]