forked from Hyperion/HyperionOS
e
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
local bootLoader={...}
|
local args={...}
|
||||||
|
local bootLoader=args[1]
|
||||||
local MODE=bootLoader[1]
|
local MODE=bootLoader[1]
|
||||||
local apis=bootLoader[2]
|
local apis=bootLoader[2]
|
||||||
local bootDisk=bootLoader[3]
|
local bootDisk=bootLoader[3]
|
||||||
@@ -14,8 +15,8 @@ local list=bootLoader[6]
|
|||||||
local computer=bootLoader[7]
|
local computer=bootLoader[7]
|
||||||
local startup=true
|
local startup=true
|
||||||
local osleep=sleep
|
local osleep=sleep
|
||||||
_G._SYSDEBUG=args[8]
|
_G._SYSDEBUG=args[2]
|
||||||
bootData.debug=args[8]
|
bootData.debug=args[2]
|
||||||
local drivers={}
|
local drivers={}
|
||||||
local eventCache={}
|
local eventCache={}
|
||||||
|
|
||||||
|
|||||||
@@ -163,9 +163,9 @@ function coroutine.resumeWithTimeout(CORO, LINES, ...)
|
|||||||
if ret[2]==yeildKey then return false else return true, table.unpack(ret, 2) end
|
if ret[2]==yeildKey then return false else return true, table.unpack(ret, 2) end
|
||||||
end
|
end
|
||||||
|
|
||||||
local kernel = load(getFile("/boot/Hyprkrnl.sys").readAllText(), "@kernel", "t", _G)
|
local kernel = load(getFile("/boot/HBoot.sys").readAllText(), "@kernel", "t", _G)
|
||||||
if not kernel then
|
if not kernel then
|
||||||
catErr("KERNEL COMPILE ERR")
|
catErr("BOOT COMPILE ERR")
|
||||||
end
|
end
|
||||||
local kernel_coro = coroutine.create(function()
|
local kernel_coro = coroutine.create(function()
|
||||||
local ok,err = pcall(function()
|
local ok,err = pcall(function()
|
||||||
|
|||||||
Reference in New Issue
Block a user