From 5ecf1fa4af2037c8edcaaffad4ef1ec59d8b18c4 Mon Sep 17 00:00:00 2001 From: TheWahlolly Date: Wed, 2 Jul 2025 12:38:52 +0300 Subject: [PATCH] v1.14.1 - Small tweak to the import function mistakenly not finding files. --- argentum.cfg | 2 +- halyde/core/boot.lua | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/argentum.cfg b/argentum.cfg index 0ec17b8..1205f87 100644 --- a/argentum.cfg +++ b/argentum.cfg @@ -1,7 +1,7 @@ local agcfg = { ["halyde"] = { ["maindir"] = "", - ["version"] = "1.14.0", + ["version"] = "1.14.1", ["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.", ["directories"] = { "halyde/apps", diff --git a/halyde/core/boot.lua b/halyde/core/boot.lua index 5bee363..0b211fb 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.14.0" +_G._OSVERSION = "Halyde 1.14.1" _G._OSLOGO = "" local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil repeat @@ -19,10 +19,8 @@ function _G.import(module, ...) return package.preloaded[module] end local modulepath - if module:find("^/") then - if filesystem.exists(module) then - modulepath = module - end + if filesystem.exists(module) then + modulepath = module elseif filesystem.exists("/halyde/lib/"..module..".lua") then modulepath = "/halyde/lib/"..module..".lua" elseif shell and shell.workingDirectory and filesystem.exists(shell.workingDirectory..module) then