mirror of https://github.com/bjornbytes/lovr.git
Default errhand implementation handles restart event;
This commit is contained in:
parent
f1b447662d
commit
86fee211f1
|
@ -233,7 +233,10 @@ function lovr.errhand(message, traceback)
|
|||
|
||||
return function()
|
||||
lovr.event.pump()
|
||||
for name, a in lovr.event.poll() do if name == 'quit' then return a or 1 end end
|
||||
for name, a in lovr.event.poll() do
|
||||
if name == 'quit' then return a or 1
|
||||
elseif name == 'restart' then return 'restart', lovr.restart and lovr.restart() end
|
||||
end
|
||||
lovr.graphics.origin()
|
||||
if lovr.headset then
|
||||
lovr.headset.update(0)
|
||||
|
|
Loading…
Reference in New Issue