update to start working on SysInit

This commit is contained in:
2025-12-10 22:14:52 -05:00
parent 7bc6d87322
commit 6d9d02edf7
163 changed files with 1422 additions and 10637 deletions

View File

@@ -1,6 +1,5 @@
local args = {...}
local kernel = args[1]
-- List of search paths
local paths = {
"/lib/?",
@@ -11,7 +10,7 @@ local paths = {
-- Custom require implementation
function require(module)
-- Return cached module if it already exists
if kernel.cache.preload[module] then
if kernel.cache.preload[module]~=nil then
return kernel.cache.preload[module]
end
@@ -53,4 +52,5 @@ function require(module)
-- If nothing worked, raise an error with all reasons
error("Unable to require module '" .. module .. "':\n" .. table.concat(err, "\n"))
end
end
kernel.log("Created require")