From eb155c4ace2ddc5810c51b9761f68edd08e3d82e Mon Sep 17 00:00:00 2001 From: TheWahlolly Date: Wed, 2 Jul 2025 08:24:35 +0300 Subject: [PATCH] v1.12.6 - Some minor patches including forgotten filesystem.open() modes and a Lua 5.4 function left in by accident in cormgr --- argentum.cfg | 2 +- halyde/core/boot.lua | 2 +- halyde/core/cormgr.lua | 2 +- halyde/lib/event.lua | 2 +- halyde/lib/filesystem.lua | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/argentum.cfg b/argentum.cfg index 8702bc8..9c9be6a 100644 --- a/argentum.cfg +++ b/argentum.cfg @@ -1,7 +1,7 @@ local agcfg = { ["halyde"] = { ["maindir"] = "", - ["version"] = "1.12.5", + ["version"] = "1.12.6", ["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 6fa9749..e9e752f 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.12.5" +_G._OSVERSION = "Halyde 1.12.6" _G._OSLOGO = "" local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil repeat diff --git a/halyde/core/cormgr.lua b/halyde/core/cormgr.lua index da4090f..7049fa3 100644 --- a/halyde/core/cormgr.lua +++ b/halyde/core/cormgr.lua @@ -40,7 +40,7 @@ function _G.cormgr.removeCoroutine(name) local index = table.find(cormgr.labelList, cor) table.remove(cormgr.corList, index) table.remove(cormgr.labelList, index) - coroutine.close(cor) + --coroutine.close(cor) end function handleError(errormsg) diff --git a/halyde/lib/event.lua b/halyde/lib/event.lua index 71cb77b..ef6075f 100644 --- a/halyde/lib/event.lua +++ b/halyde/lib/event.lua @@ -1,7 +1,7 @@ local computer = import("computer") local event = {} -local bufferTime = 0.05 -- A little bit of buffer time so event's won't be skipped by accident. +local bufferTime = 0.05 -- A little bit of buffer time so events won't be skipped by accident. --local ocelot = component.proxy(component.list("ocelot")()) function event.pull(...) diff --git a/halyde/lib/filesystem.lua b/halyde/lib/filesystem.lua index 3648bfd..f904efa 100644 --- a/halyde/lib/filesystem.lua +++ b/halyde/lib/filesystem.lua @@ -123,7 +123,7 @@ function filesystem.open(path, mode, buffered) -- opens a file and returns its h if not buffered then buffered = true end - if not (mode == "r" or mode == "w" or mode == "rb" or mode == "wb") then + if not (mode == "r" or mode == "w" or mode == "rb" or mode == "wb" or mode == "a" or mode == "ab") then return nil, "invalid handle type" end local address, absPath = filesystem.absolutePath(path)