chore: add misc file

This commit is contained in:
JuanZoran
2023-03-07 21:52:29 +08:00
parent 7dbf3b17be
commit e9f5f7f160
4 changed files with 104 additions and 55 deletions

View File

@@ -0,0 +1,13 @@
local M = {}
M.__index = function(tbl, k)
local res, engine = pcall(require, 'Trans.backend.' .. k)
assert(res, [[Can't Found Engine:]] .. k)
tbl[k] = engine
return engine
end
return setmetatable(M, M)