lovr.quit

This 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

NameTypeDescription
abortbooleanWhether quitting should be aborted.

Example

function lovr.quit()
  if shouldQuit() then
    return false
  else
    return true
  end
end

See also