made SEBIOS not crash when there's an empty tape drive present

This commit is contained in:
Izaya 2017-08-02 23:50:56 +10:00
parent bd41474e31
commit 308c0acad5
1 changed files with 2 additions and 2 deletions

View File

@ -72,9 +72,9 @@ do
end
wl("SKS Enhanced BIOS v1")
wl("Memory: "..tostring(computer.totalMemory()/1024).."K")
wl("")
wl(" ")
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") or ""))
end
local timer = 5
while computer.uptime() < timer do