1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-12-26 02:08:07 +11:00

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

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)()