setIdentity.lua 678 B

1234567891011121314151617181920212223242526
  1. return {
  2. tag = 'filesystem-virtual',
  3. summary = 'Set the name of the save directory.',
  4. description = [[
  5. Set the name of the save directory. This function can only be called once and is called
  6. automatically at startup, so this function normally isn't called manually. However, the
  7. identity can be changed by setting the `t.identity` option in `lovr.conf`.
  8. ]],
  9. arguments = {
  10. identity = {
  11. type = 'string',
  12. description = 'The name of the save directory.'
  13. }
  14. },
  15. returns = {},
  16. variants = {
  17. {
  18. arguments = { 'identity' },
  19. returns = {}
  20. }
  21. },
  22. related = {
  23. 'lovr.conf',
  24. 'lovr.filesystem.getSaveDirectory'
  25. }
  26. }