added a way to increase the timer for sebios
This commit is contained in:
parent
cd1036eeef
commit
b8d244056c
15
sebios.lua
15
sebios.lua
@ -64,6 +64,8 @@ do
|
|||||||
if gA and sA then
|
if gA and sA then
|
||||||
local gP,cy = component.proxy(gA),1
|
local gP,cy = component.proxy(gA),1
|
||||||
gP.bind(sA)
|
gP.bind(sA)
|
||||||
|
local sx, sy = gP.getResolution()
|
||||||
|
gP.fill(1,1,sx,sy," ")
|
||||||
local function wl(s)
|
local function wl(s)
|
||||||
gP.set(1,cy,s)
|
gP.set(1,cy,s)
|
||||||
cy=cy+1
|
cy=cy+1
|
||||||
@ -74,24 +76,19 @@ do
|
|||||||
for k,v in ipairs(bootdevs) do
|
for k,v in ipairs(bootdevs) do
|
||||||
wl(tostring(k-1).." "..v.." "..component.type(v).." "..component.invoke(v,"getLabel"))
|
wl(tostring(k-1).." "..v.." "..component.type(v).." "..component.invoke(v,"getLabel"))
|
||||||
end
|
end
|
||||||
while computer.uptime() < 5 do
|
local timer = 5
|
||||||
|
while computer.uptime() < timer do
|
||||||
t,_,c = computer.pullSignal(0.5)
|
t,_,c = computer.pullSignal(0.5)
|
||||||
if t == "key_down" and c > 47 and c < 58 then
|
if t == "key_down" and c > 47 and c < 58 then
|
||||||
computer.setBootAddress(bootdevs[c-47])
|
computer.setBootAddress(bootdevs[c-47])
|
||||||
wl("Boot device set to "..bootdevs[c-47])
|
wl("Boot device set to "..bootdevs[c-47])
|
||||||
|
elseif t == "key_down" and c == 27 then
|
||||||
|
timer = timer + 10
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
while computer.uptime() < 2 do
|
|
||||||
t,_,c = computer.pullSignal(0.5)
|
|
||||||
if t == "key_down" and c > 47 and c < 58 then
|
|
||||||
computer.setBootAddress(bootdevs[c-47])
|
|
||||||
wl("Boot device set to "..bootdevs[c-47])
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
local init, reason
|
local init, reason
|
||||||
if computer.getBootAddress() then
|
if computer.getBootAddress() then
|
||||||
init, reason = tryLoadFrom(computer.getBootAddress())
|
init, reason = tryLoadFrom(computer.getBootAddress())
|
||||||
|
Loading…
Reference in New Issue
Block a user