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:
Alex Szpakowski
2016-09-08 18:42:56 -03:00
parent 8fca2aa607
commit e803878445
3 changed files with 34 additions and 17 deletions
+1 -1
View File
@@ -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