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:
parent
206e038d8d
commit
b79ae09cdf
15
Embedded/init-wrapper.lua
Normal file
15
Embedded/init-wrapper.lua
Normal 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)()
|
Loading…
Reference in New Issue
Block a user