v0.10.0 - Added text editor (which took me way too long) and too many other tweaks to name.
This commit is contained in:
@@ -48,7 +48,12 @@ function filesystem.open(path, mode) -- opens a file and returns its handle
|
||||
return nil, "invalid handle type"
|
||||
end
|
||||
local address, absPath = filesystem.processPath(path)
|
||||
local handle = component.invoke(address, "open", absPath, mode)
|
||||
local handleArgs = {component.invoke(address, "open", absPath, mode)}
|
||||
local handle = handleArgs[1]
|
||||
if not handle then
|
||||
return table.unpack(handleArgs)
|
||||
end
|
||||
handleArgs = nil
|
||||
local properHandle = {}
|
||||
properHandle.handle = handle
|
||||
properHandle.address = address
|
||||
|
||||
Reference in New Issue
Block a user