v1.8.7 - Fixed cd-ing in /mnt/.

This commit is contained in:
TheWahlolly
2025-06-07 08:35:34 +03:00
parent 876923e746
commit 3dfab2a6c1
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
local agcfg = { local agcfg = {
["halyde"] = { ["halyde"] = {
["maindir"] = "", ["maindir"] = "",
["version"] = "1.8.6", ["version"] = "1.8.7",
["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
@@ -4,7 +4,7 @@ Ahalyde/core/
Ahalyde/config/generate/ Ahalyde/config/generate/
Ahalyde/apps/helpdb/ Ahalyde/apps/helpdb/
Ahalyde/apps/ Ahalyde/apps/
V1.8.6 V1.8.7
Ainit.lua Ainit.lua
Ahalyde/apps/helpdb/cat.txt Ahalyde/apps/helpdb/cat.txt
Ahalyde/apps/helpdb/cd.txt Ahalyde/apps/helpdb/cd.txt
+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 1.8.6" _G._OSVERSION = "Halyde 1.8.7"
_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
+3 -2
View File
@@ -44,7 +44,7 @@ function filesystem.absolutePath(path) -- returns the address and absolute path
checkArg(1, path, "string") checkArg(1, path, "string")
path = filesystem.canonical(path) path = filesystem.canonical(path)
local address = nil local address = nil
if path:find("^/mnt/.../") then if path:find("^/mnt/...") then
address = component.get(path:sub(6,8)) address = component.get(path:sub(6,8))
if not address then if not address then
address = computer.getBootAddress() address = computer.getBootAddress()
@@ -104,7 +104,8 @@ end
function filesystem.list(path) function filesystem.list(path)
checkArg(1, path, "string") checkArg(1, path, "string")
if path == "/mnt/" then path = filesystem.canonical(path)
if path == "/mnt" then
-- list drives -- list drives
local returnTable = {} local returnTable = {}
for address, _ in component.list("filesystem") do for address, _ in component.list("filesystem") do