v2.7.1 - Fixed a bug where drivers wouldn't load, and listing /special/drive would return an error when a Computers tape drive is connected

The startupapps.json config file didn't have drvload.lua when recently installing Halyde. component.list("drive") will not just list components with the 'drive' type, but also with types that contain 'drive'. this includes 'tape_drive' (Computronics), so when calling getCapacity, the filesystem library errors out.
This commit is contained in:
Ponali
2025-07-23 16:31:58 +02:00
parent 6dd3e5a192
commit fe6cd4cd72
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
local agcfg = { local agcfg = {
["halyde"] = { ["halyde"] = {
["maindir"] = "", ["maindir"] = "",
["version"] = "2.7.0", ["version"] = "2.7.1",
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.", ["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
["directories"] = { ["directories"] = {
"halyde/apps", "halyde/apps",
+1 -1
View File
@@ -1 +1 @@
["/halyde/core/fullkb.lua","/halyde/core/evmgr.lua","/halyde/core/shell.lua"] ["/halyde/core/fullkb.lua","/halyde/core/evmgr.lua","/halyde/core/drvload.lua","/halyde/core/shell.lua"]
+1 -1
View File
@@ -1,7 +1,7 @@
local loadfile = ... local loadfile = ...
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile) local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
_G._OSVERSION = "Halyde 2.7.0" _G._OSVERSION = "Halyde 2.7.1"
_G._OSLOGO = "" _G._OSLOGO = ""
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
repeat repeat
+2 -2
View File
@@ -304,8 +304,8 @@ function filesystem.list(path)
elseif path == "/special/drive" then elseif path == "/special/drive" then
local returnTable = {} local returnTable = {}
local tmpAddress = computer.tmpAddress() local tmpAddress = computer.tmpAddress()
for address, _ in component.list("drive") do for address, type in component.list("drive") do
if address~=tmpAddress then if address~=tmpAddress and type=="drive" then
table.insert(returnTable, address:sub(1, 3)) table.insert(returnTable, address:sub(1, 3))
end end
end end