getIdentity.lua 524 B

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