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.

26 lines
611B

  1. #pragma once
  2. #include "common.hpp"
  3. namespace rack {
  4. struct Plugin;
  5. struct AssetManager {
  6. std::string systemDir;
  7. std::string userDir;
  8. AssetManager();
  9. /** Returns the path of a system resource. Should only read files from this location. */
  10. std::string system(std::string filename);
  11. /** Returns the path of a user resource. Can read and write files to this location. */
  12. std::string user(std::string filename);
  13. /** Returns the path of a resource in the plugin's folder. Should only read files from this location. */
  14. std::string plugin(Plugin *plugin, std::string filename);
  15. };
  16. } // namespace rack