mirror of
https://github.com/kepler155c/opus
synced 2025-10-14 07:17:40 +00:00
pcall driver init
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user