mirror of
https://github.com/Adorable-Catgirl/Zorya-NEO.git
synced 2024-11-14 22:38:07 +11:00
17 lines
532 B
Lua
17 lines
532 B
Lua
local zy = krequire("zorya")
|
|
--zy.loadmod("vdev_biosdev")
|
|
local utils = krequire("utils")
|
|
--local vdev = krequire("zorya").loadmod("util_vdev")
|
|
return function(addr)
|
|
local fs = component.proxy(addr)
|
|
local kr = krequire
|
|
krequire = nil
|
|
--vdev.overwrite(_G)
|
|
function computer.getBootAddress()
|
|
return addr
|
|
end
|
|
function computer.setBootAddress()end
|
|
--log(env, env.computer, env.computer.getBootAddress, env.computer.getBootAddress())
|
|
load(utils.readfile(fs.address, fs.open("init.lua")), "=init.lua", "t")()
|
|
krequire = kr
|
|
end |