v2.7.0 - Added a serialization library for table and strings, and automatic output in the Lua shell

This commit is contained in:
Ponali
2025-07-23 10:46:05 +02:00
parent 68e5b70273
commit bf4c1af9ef
5 changed files with 139 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
local loadfile = ...
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
_G._OSVERSION = "Halyde 2.6.0"
_G._OSVERSION = "Halyde 2.7.0"
_G._OSLOGO = ""
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
repeat
+4 -1
View File
@@ -1,3 +1,4 @@
local serialize = import("serialize")
local unicode = import("unicode")
local event = import("event")
--local keyboard = import("keyboard")
@@ -209,7 +210,9 @@ function _G.print(...)
local args = {...}
local stringArgs = {}
for _, arg in pairs(args) do
if tostring(arg) then
if type(arg)=="table" then
table.insert(stringArgs, serialize.table(arg,true))
elseif tostring(arg) then
table.insert(stringArgs, tostring(arg))
end
end