From 3dfab2a6c1b902d99da66f03bb7c82e62cb82c17 Mon Sep 17 00:00:00 2001 From: TheWahlolly Date: Sat, 7 Jun 2025 08:35:34 +0300 Subject: [PATCH] v1.8.7 - Fixed cd-ing in /mnt/. --- argentum.cfg | 2 +- argentum/store/halyde/package.cfg | 2 +- halyde/core/boot.lua | 2 +- halyde/lib/filesystem.lua | 5 +++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/argentum.cfg b/argentum.cfg index 696c241..344e30c 100644 --- a/argentum.cfg +++ b/argentum.cfg @@ -1,7 +1,7 @@ local agcfg = { ["halyde"] = { ["maindir"] = "", - ["version"] = "1.8.6", + ["version"] = "1.8.7", ["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.", ["directories"] = { "halyde/apps", diff --git a/argentum/store/halyde/package.cfg b/argentum/store/halyde/package.cfg index cc595c7..99456ec 100644 --- a/argentum/store/halyde/package.cfg +++ b/argentum/store/halyde/package.cfg @@ -4,7 +4,7 @@ Ahalyde/core/ Ahalyde/config/generate/ Ahalyde/apps/helpdb/ Ahalyde/apps/ -V1.8.6 +V1.8.7 Ainit.lua Ahalyde/apps/helpdb/cat.txt Ahalyde/apps/helpdb/cd.txt diff --git a/halyde/core/boot.lua b/halyde/core/boot.lua index fafdedc..d451fed 100644 --- a/halyde/core/boot.lua +++ b/halyde/core/boot.lua @@ -1,7 +1,7 @@ local loadfile = ... local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile) -_G._OSVERSION = "Halyde 1.8.6" +_G._OSVERSION = "Halyde 1.8.7" _G._OSLOGO = "" local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil repeat diff --git a/halyde/lib/filesystem.lua b/halyde/lib/filesystem.lua index 1b3b69c..a8f1906 100644 --- a/halyde/lib/filesystem.lua +++ b/halyde/lib/filesystem.lua @@ -44,7 +44,7 @@ function filesystem.absolutePath(path) -- returns the address and absolute path checkArg(1, path, "string") path = filesystem.canonical(path) local address = nil - if path:find("^/mnt/.../") then + if path:find("^/mnt/...") then address = component.get(path:sub(6,8)) if not address then address = computer.getBootAddress() @@ -104,7 +104,8 @@ end function filesystem.list(path) checkArg(1, path, "string") - if path == "/mnt/" then + path = filesystem.canonical(path) + if path == "/mnt" then -- list drives local returnTable = {} for address, _ in component.list("filesystem") do