1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-25 04:37:40 +00:00

lock computer

This commit is contained in:
kepler155c@gmail.com
2019-11-01 22:37:08 -06:00
parent aaab059cee
commit 5c35a8383e
3 changed files with 28 additions and 22 deletions

View File

@@ -1,3 +1,5 @@
local fs = _G.fs
if fs.native then
return
end
@@ -7,8 +9,6 @@ local Util = require('opus.util')
-- TODO: support getDrive for virtual nodes
local fs = _G.fs
fs.native = Util.shallowCopy(fs)
local fstypes = { }
@@ -16,7 +16,7 @@ local nativefs = { }
for k,fn in pairs(fs) do
if type(fn) == 'function' then
nativefs[k] = function(node, ...)
nativefs[k] = function(_, ...)
return fn(...)
end
end
@@ -340,8 +340,8 @@ function fs.unmount(path)
end
end
function fs.registerType(name, fs)
fstypes[name] = fs
function fs.registerType(name, vfs)
fstypes[name] = vfs
end
function fs.getTypes()