mirror of
https://github.com/zenith391/OCEmu.git
synced 2025-09-30 00:28:05 -04:00
move address load a bit earlier in time for first use
This commit is contained in:
parent
8c548cfc3d
commit
b9fedc2da9
@ -311,6 +311,12 @@ function modem_host.connectMessageBoard()
|
|||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- computer address seems to be applied late
|
||||||
|
if modem_host.id == nil then
|
||||||
|
modem_host.id = component.list("computer",true)()
|
||||||
|
assert(modem_host.id)
|
||||||
|
end
|
||||||
|
|
||||||
local ok, info, critical = modem_host.joinExistingMessageBoard()
|
local ok, info, critical = modem_host.joinExistingMessageBoard()
|
||||||
|
|
||||||
if not ok and critical then
|
if not ok and critical then
|
||||||
@ -330,12 +336,6 @@ function modem_host.connectMessageBoard()
|
|||||||
modem_host.clients = {}
|
modem_host.clients = {}
|
||||||
modem_host.messages = {}
|
modem_host.messages = {}
|
||||||
|
|
||||||
-- computer address seems to be applied late
|
|
||||||
if modem_host.id == nil then
|
|
||||||
modem_host.id = component.list("computer",true)()
|
|
||||||
assert(modem_host.id)
|
|
||||||
end
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user