added a wrapper for OSes not directly supported

This commit is contained in:
Izaya 2018-03-31 15:48:40 +11:00
parent 206e038d8d
commit b79ae09cdf
1 changed files with 15 additions and 0 deletions

15
Embedded/init-wrapper.lua Normal file
View File

@ -0,0 +1,15 @@
local c = ""
do
function net.hook.sender(et,packetID,packetType,to,vport,data)
if et == "net_send" then
net.send(packetID,packetType,to,vport,data)
end
end
local fs = component.proxy(computer.getBootAddress())
local fh,b = fs.open("boot.lua"),""
repeat
b=fs.read(fh,4096) or ""
c=c..b
until b == ""
end
load(c)()