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"] = {} }