mirror of https://github.com/bjornbytes/lovr.git
Merge pull request #289 from alloverse/noheadset
Allow lovr.headset.init to fail
This commit is contained in:
commit
fc48df874c
|
@ -159,7 +159,11 @@ function lovr.boot()
|
|||
end
|
||||
|
||||
if lovr.headset and lovr.graphics and conf.window then
|
||||
lovr.headset.init()
|
||||
local ok, result = pcall(lovr.headset.init)
|
||||
if not ok then
|
||||
print(string.format('Warning: Could not load module %q: %s', 'headset', result))
|
||||
lovr.headset = nil
|
||||
end
|
||||
end
|
||||
|
||||
lovr.handlers = setmetatable({}, { __index = lovr })
|
||||
|
|
Loading…
Reference in New Issue