1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-14 07:17:40 +00:00

pcall driver init

This commit is contained in:
kepler155c@gmail.com
2018-12-05 21:21:30 -05:00
parent 72142e12cc
commit 6674c715e0
2 changed files with 9 additions and 5 deletions

View File

@@ -173,6 +173,9 @@ end
-- initialize drivers
for _,v in pairs(device) do
if drivers[v.type] then
drivers[v.type](v)
local s, m = pcall(drivers[v.type], v)
if not s and m then
_G.printError(m)
end
end
end