e
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
local disks={}
|
||||
|
||||
for i,v in component.list() do
|
||||
if v.type == "udd" then
|
||||
v.writeBytes(0,"Hello, World!")
|
||||
end
|
||||
end
|
||||
--[[
|
||||
local computer = component.getFirst("computer")
|
||||
local screen=component.getFirst("screen")
|
||||
while true do
|
||||
local event = {computer.getMachineEvent()}
|
||||
if event[1]~= nil then
|
||||
screen.print(table.unpack(event))
|
||||
end
|
||||
end
|
||||
if not screen then
|
||||
local function e(...)end
|
||||
screen = {
|
||||
@@ -158,7 +156,6 @@ local ok,err = xpcall(function()
|
||||
break
|
||||
end
|
||||
end
|
||||
sleep(0.02)
|
||||
end
|
||||
::invalid_boot::
|
||||
end
|
||||
@@ -172,7 +169,6 @@ local ok,err = xpcall(function()
|
||||
computer.shutdown()
|
||||
end
|
||||
end
|
||||
sleep(0.02)
|
||||
end
|
||||
end, debug.traceback)
|
||||
if not ok then
|
||||
@@ -187,12 +183,11 @@ if not ok then
|
||||
screen.print("Press enter to continue...")
|
||||
while true do
|
||||
local event = {computer.getMachineEvent()}
|
||||
screen.print(table.unpack(event))
|
||||
if event[1] == "keyTyped" then
|
||||
if event[3] == "\n" then
|
||||
computer.shutdown()
|
||||
end
|
||||
end
|
||||
sleep(0.02)
|
||||
end
|
||||
end
|
||||
]]
|
||||
end
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
disks={1, 56}
|
||||
disks={1,3,56}
|
||||
}
|
||||
Reference in New Issue
Block a user