Comment on require() function in halyde/kernel/boot.lua

This is a pretty old bug by now.
This commit is contained in:
WahPlus
2025-10-30 14:13:18 +02:00
parent be2ddf1dd4
commit ead5a09747
+1 -1
View File
@@ -37,7 +37,7 @@ function _G.reqgen(load)
then
modulepath = shell.workingDirectory .. module .. ".lua"
end
assert(modulepath, "Module not found\nPossible locations:\n/lib/" .. module .. ".lua")
assert(modulepath, "Module not found\nPossible locations:\n/lib/" .. module .. ".lua") -- FIXME: When providing an absolute path, this spits out some weird stuff.
local handle, data, tmpdata = filesystem.open(modulepath), "", nil
repeat
tmpdata = handle:read(math.huge or math.maxinteger)