v1.12.6 - Some minor patches including forgotten filesystem.open() modes and a Lua 5.4 function left in by accident in cormgr

This commit is contained in:
TheWahlolly
2025-07-02 08:24:35 +03:00
parent 418ba9579e
commit eb155c4ace
5 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"] = "1.12.5", ["version"] = "1.12.6",
["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,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.12.5" _G._OSVERSION = "Halyde 1.12.6"
_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
+1 -1
View File
@@ -40,7 +40,7 @@ function _G.cormgr.removeCoroutine(name)
local index = table.find(cormgr.labelList, cor) local index = table.find(cormgr.labelList, cor)
table.remove(cormgr.corList, index) table.remove(cormgr.corList, index)
table.remove(cormgr.labelList, index) table.remove(cormgr.labelList, index)
coroutine.close(cor) --coroutine.close(cor)
end end
function handleError(errormsg) function handleError(errormsg)
+1 -1
View File
@@ -1,7 +1,7 @@
local computer = import("computer") local computer = import("computer")
local event = {} 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")()) --local ocelot = component.proxy(component.list("ocelot")())
function event.pull(...) function event.pull(...)
+1 -1
View File
@@ -123,7 +123,7 @@ function filesystem.open(path, mode, buffered) -- opens a file and returns its h
if not buffered then if not buffered then
buffered = true buffered = true
end 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" return nil, "invalid handle type"
end end
local address, absPath = filesystem.absolutePath(path) local address, absPath = filesystem.absolutePath(path)