mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
love.event.quit("restart") now causes LÖVE to restart the Lua state after shutting it down.
Note that this isn't perfect – it won't kill running threads which aren't cleaned up by the Lua code when the main Lua state is shut down.
This commit is contained in:
@@ -679,5 +679,5 @@ return function()
|
||||
local result, retval = xpcall(love.run, deferErrhand)
|
||||
if not result then return 1 end
|
||||
|
||||
return tonumber(retval) or 0
|
||||
return retval == nil and 0 or retval
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user