mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-23 10:38:05 +11:00
fix computer.address on R1
This commit is contained in:
parent
6a5b711172
commit
ebe82bd4bf
@ -6,6 +6,11 @@ neo.requireAccess("s.h.modem_message","pulling packets")
|
|||||||
local processes = {}
|
local processes = {}
|
||||||
local hooks = {}
|
local hooks = {}
|
||||||
local computer = {["uptime"]=os.uptime,["address"]=os.address} -- wrap computer so the OpenOS code more or less works
|
local computer = {["uptime"]=os.uptime,["address"]=os.address} -- wrap computer so the OpenOS code more or less works
|
||||||
|
|
||||||
|
if not computer.address then -- R1 compatibility
|
||||||
|
computer.address = neo.requireAccess("k.computer","get address").address
|
||||||
|
end
|
||||||
|
|
||||||
local event = {}
|
local event = {}
|
||||||
function event.timer()
|
function event.timer()
|
||||||
end
|
end
|
||||||
@ -45,6 +50,8 @@ local event = require "event"
|
|||||||
local component = require "component"
|
local component = require "component"
|
||||||
local computer = require "computer"
|
local computer = require "computer"
|
||||||
]]--
|
]]--
|
||||||
|
|
||||||
|
|
||||||
local hostname = computer.address():sub(1,8)
|
local hostname = computer.address():sub(1,8)
|
||||||
local listener = false
|
local listener = false
|
||||||
local dbug = true
|
local dbug = true
|
||||||
|
Loading…
Reference in New Issue
Block a user