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

View File

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