init.lua 1.1 KB

123456789101112131415161718192021222324252627282930
  1. return {
  2. tag = 'modules',
  3. summary = 'Provides access to the filesystem.',
  4. description = 'The `lovr.filesystem` module provides access to the filesystem.',
  5. notes = [[
  6. LÖVR programs can only write to a single directory, called the save directory. The location of
  7. the save directory is platform-specific:
  8. <table>
  9. <tr>
  10. <td>Windows</td>
  11. <td><code>C:\Users\&lt;user&gt;\AppData\Roaming\LOVR\&lt;identity&gt;</code></td>
  12. </tr>
  13. <tr>
  14. <td>macOS</td>
  15. <td><code>/Users/&lt;user&gt;/Library/Application Support/LOVR/&lt;identity&gt;</code></td>
  16. </tr>
  17. <tr>
  18. <td>Linux</td>
  19. <td><code>/home/&lt;user&gt;/.local/share/LOVR/&lt;identity&gt;</code></td>
  20. </tr>
  21. </table>
  22. `<identity>` should be a unique identifier for your app. It can be set either in `lovr.conf` or
  23. by using `lovr.filesystem.setIdentity`.
  24. All filenames are relative to either the save directory or the directory containing the project
  25. source. Files in the save directory take precedence over files in the project.
  26. ]]
  27. }