VCV Rack API v2
Loading...
Searching...
No Matches
asset.hpp
Go to the documentation of this file.
1#pragma once
2#include <common.hpp>
3
4
5namespace rack {
6
7
8namespace plugin {
9struct Plugin;
10} // namespace plugin
11
12
13namespace engine {
14struct Module;
15} // namespace engine
16
17
19namespace asset {
20
21
23
25std::string system(std::string filename = "");
26
28std::string user(std::string filename = "");
29
36std::string plugin(plugin::Plugin* plugin, std::string filename = "");
37
38
39// Set these before calling init() to override the default paths
40extern std::string systemDir;
41extern std::string userDir;
42// Only defined on Mac
43extern std::string bundlePath;
44
45
46} // namespace asset
47} // namespace rack
#define PRIVATE
Attribute for private functions not intended to be called by plugins.
Definition common.hpp:30
std::string system(std::string filename="")
Returns the path of a system asset.
std::string bundlePath
PRIVATE void init()
std::string user(std::string filename="")
Returns the path of a user asset.
std::string userDir
std::string plugin(plugin::Plugin *plugin, std::string filename="")
Returns the path of an asset in the plugin's dir.
std::string systemDir
const char * filename
Definition logger.hpp:41
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
DSP processor instance for your module.
Definition Module.hpp:29
Definition Plugin.hpp:17