From 5670df13b6980afd025cd7e7d442a24499bf86a7 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Mon, 8 Dec 2025 20:17:41 -0400 Subject: [PATCH] the default/example error handler can handle restart parameters. --- src/modules/love/callbacks.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/love/callbacks.lua b/src/modules/love/callbacks.lua index 4ccc5824a..132815b9e 100644 --- a/src/modules/love/callbacks.lua +++ b/src/modules/love/callbacks.lua @@ -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