|
1234567891011121314151617181920212223 |
- #pragma once
-
- #include <string>
- #include "plugin.hpp"
-
-
- namespace rack {
-
-
- void assetInit(bool devMode);
- /** Returns the path of a global resource. Should only read files from this location. */
- std::string assetGlobal(std::string filename);
- /** Returns the path of a local resource. Can read and write files to this location. */
- std::string assetLocal(std::string filename);
- /** Returns the path of a resource in the plugin's folder. Should only read files from this location. */
- std::string assetPlugin(Plugin *plugin, std::string filename);
-
-
- extern std::string assetGlobalDir;
- extern std::string assetLocalDir;
-
-
- } // namespace rack
|