require rework round 3

This commit is contained in:
kepler155c@gmail.com
2019-01-26 22:58:21 -05:00
parent bae28521db
commit 04815b2d09
62 changed files with 85 additions and 608 deletions

View File

@@ -0,0 +1,18 @@
local Adapter = { }
function Adapter.wrap(args)
local adapters = {
'core.refinedAdapter',
'core.meAdapter',
}
for _,adapterType in ipairs(adapters) do
local adapter = require(adapterType)(args)
if adapter:isValid() then
return adapter
end
end
end
return Adapter