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:
@@ -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(...)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user