VCV Rack API v2
|
Handles common path locations. More...
Functions | |
PRIVATE void | init () |
std::string | system (std::string filename="") |
Returns the path of a system asset. | |
std::string | user (std::string filename="") |
Returns the path of a user asset. | |
std::string | plugin (plugin::Plugin *plugin, std::string filename="") |
Returns the path of an asset in the plugin's dir. | |
Variables | |
std::string | systemDir |
std::string | userDir |
std::string | oldUserDir |
std::string | bundlePath |
Handles common path locations.
PRIVATE void rack::asset::init | ( | ) |
std::string rack::asset::system | ( | std::string | filename = "" | ) |
Returns the path of a system asset.
Read-only files.
std::string rack::asset::user | ( | std::string | filename = "" | ) |
Returns the path of a user asset.
Readable/writable files.
std::string rack::asset::plugin | ( | plugin::Plugin * | plugin, |
std::string | filename = "" ) |
Returns the path of an asset in the plugin's dir.
Read-only files.
Examples:
asset::plugin(pluginInstance, "samples/00.wav") // "/<Rack user dir>/plugins/MyPlugin/samples/00.wav"
|
extern |
|
extern |
|
extern |
|
extern |