lovr.quit
EditThis callback is called right before the application is about to quit. Use it to perform any necessary cleanup work. A truthy value can be returned from this callback to abort quitting.
function lovr.quit()
-- your code here
end
Arguments
None
Returns
Name | Type | Description |
abort | boolean | Whether quitting should be aborted. |
Example
function lovr.quit()
if shouldQuit() then
return false
else
return true
end
end