made fetch get the logo, instead of getting preloaded when booting

This commit is contained in:
Ponali
2025-10-05 08:09:14 +02:00
parent 1d49683d3c
commit 296aba9a2f
3 changed files with 21 additions and 20 deletions
-8
View File
@@ -1,7 +1,6 @@
local loadfile = ...
local filesystem = assert(loadfile("/lib/filesystem.lua")(loadfile))
_G._OSVERSION = "HALYDE VERSION" -- TODO: Put this in a separate config file
_G._OSLOGO = ""
_G._PUBLIC = {}
_G._PUBLIC.unicode = assert(loadfile("/lib/unicode.lua")(loadfile))
local component = assert(loadfile("/lib/component.lua")(loadfile))
@@ -15,13 +14,6 @@ local log = assert(loadfile("/lib/log.lua")(loadfile))
log.kernel.info("Bound GPU to screen " .. tostring(screenAddress))
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
repeat
tmpdata = handle:read(math.huge)
_OSLOGO = _OSLOGO .. (tmpdata or "")
until not tmpdata
handle:close()
log.kernel.info("Loaded OS logo")
_G.package = { ["preloaded"] = {} }
+2 -3
View File
@@ -1,6 +1,6 @@
local module = {}
module.dependencies = {"terminal"}
module.dependencies = { "terminal" }
function module.check()
return true -- This module should always be loaded
@@ -11,7 +11,6 @@ function module.init()
"print",
"_VERSION",
"_OSVERSION",
"_OSLOGO",
"assert",
"error",
"getmetatable",
@@ -39,7 +38,7 @@ function module.init()
"table",
"checkArg",
"utf8",
"convert"
"convert",
}
for _, value in ipairs(publicTable) do
_G._PUBLIC[value] = table.copy(_G[value])