milo: mass storage support (ae/rs)

This commit is contained in:
kepler155c@gmail.com
2019-01-08 04:42:43 -05:00
parent e07298a9c4
commit 004dac65ce
6 changed files with 108 additions and 10 deletions

View File

@@ -109,7 +109,11 @@ function Storage:initStorage()
if v.adapter then
v.adapter.online = not not device[k]
elseif device[k] and device[k].list and device[k].size and device[k].pullItems then
v.adapter = Adapter({ side = k })
if v.adapterType then
v.adapter = require(v.adapterType)({ side = k })
else
v.adapter = Adapter({ side = k })
end
v.adapter.online = true
v.adapter.dirty = true
elseif device[k] then