getIdentity.lua 625 B

123456789101112131415161718192021222324
  1. return {
  2. tag = 'filesystem-virtual',
  3. summary = 'Get the name of the save directory.',
  4. description = [[
  5. Returns the identity of the game, which is used as the name of the save directory. The default
  6. is `default`. It can be changed using `t.identity` in `lovr.conf`.
  7. ]],
  8. arguments = {},
  9. returns = {
  10. identity = {
  11. type = 'string',
  12. description = 'The name of the save directory, or `nil` if it isn\'t set.'
  13. }
  14. },
  15. variants = {
  16. {
  17. arguments = {},
  18. returns = { 'identity' }
  19. }
  20. },
  21. notes = [[
  22. On Android, this is always the package id (like `org.lovr.app`).
  23. ]]
  24. }