mirror of
https://github.com/love2d/love.git
synced 2026-08-12 08:30:56 +02:00
the default/example error handler can handle restart parameters.
This commit is contained in:
@@ -313,7 +313,8 @@ function love.errorhandler(msg)
|
||||
|
||||
for e, a, b, c in love.event.poll() do
|
||||
if e == "quit" then
|
||||
return 1
|
||||
-- Also handle restart args.
|
||||
return a or 1, b
|
||||
elseif e == "keypressed" and a == "escape" then
|
||||
return 1
|
||||
elseif e == "keypressed" and a == "c" and love.keyboard.isDown("lctrl", "rctrl") then
|
||||
|
||||
Reference in New Issue
Block a user