You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
648B

  1. #pragma once
  2. #include "common.hpp"
  3. #include "plugin.hpp"
  4. namespace rack {
  5. namespace asset {
  6. void init(bool devMode);
  7. /** Returns the path of a global resource. Should only read files from this location. */
  8. std::string global(std::string filename);
  9. /** Returns the path of a local resource. Can read and write files to this location. */
  10. std::string local(std::string filename);
  11. /** Returns the path of a resource in the plugin's folder. Should only read files from this location. */
  12. std::string plugin(Plugin *plugin, std::string filename);
  13. extern std::string globalDir;
  14. extern std::string localDir;
  15. } // namespace asset
  16. } // namespace rack