move apis into rom/modules/main for shell compatibility

This commit is contained in:
kepler155c@gmail.com
2019-06-28 13:50:02 -04:00
parent c3d52c1aab
commit 343ce7fdc2
135 changed files with 297 additions and 289 deletions

View File

@@ -3,7 +3,7 @@ if fs.native then
end
_G.requireInjector(_ENV)
local Util = require('util')
local Util = require('opus.util')
-- TODO: support getDrive for virtual nodes
@@ -256,7 +256,7 @@ end
local function getfstype(fstype)
local vfs = fstypes[fstype]
if not vfs then
vfs = require('fs.' .. fstype)
vfs = require('opus.fs.' .. fstype)
fs.registerType(fstype, vfs)
end
return vfs