restart.lua 485 B

12345678910111213141516171819202122
  1. return {
  2. summary = 'Restart the application.',
  3. description = 'Pushes an event to restart the framework.',
  4. arguments = {},
  5. returns = {},
  6. variants = {
  7. {
  8. arguments = {},
  9. returns = {}
  10. }
  11. },
  12. notes = [[
  13. The event won't be processed until the next time `lovr.event.poll` is called.
  14. The `lovr.restart` callback can be used to persist a value between restarts.
  15. ]],
  16. related = {
  17. 'lovr.restart',
  18. 'lovr.event.poll',
  19. 'lovr.event.quit'
  20. }
  21. }