VCV Rack API  v1
rack::asset Namespace Reference

Functions

void init ()
 
std::string system (std::string filename)
 Returns the path of a system resource. More...
 
std::string user (std::string filename)
 Returns the path of a user resource. More...
 
std::string plugin (plugin::Plugin *plugin, std::string filename)
 Returns the path of a resource in the plugin's folder. More...
 

Variables

std::string systemDir
 
std::string userDir
 
std::string logPath
 
std::string pluginsPath
 
std::string settingsPath
 
std::string autosavePath
 
std::string templatePath
 
std::string bundlePath
 

Function Documentation

◆ init()

void rack::asset::init ( )

◆ system()

std::string rack::asset::system ( std::string  filename)

Returns the path of a system resource.

Should only read files from this location.

◆ user()

std::string rack::asset::user ( std::string  filename)

Returns the path of a user resource.

Can read and write files to this location.

◆ plugin()

std::string rack::asset::plugin ( plugin::Plugin plugin,
std::string  filename 
)

Returns the path of a resource in the plugin's folder.

Should only read files from this location.

Variable Documentation

◆ systemDir

std::string rack::asset::systemDir

◆ userDir

std::string rack::asset::userDir

◆ logPath

std::string rack::asset::logPath

◆ pluginsPath

std::string rack::asset::pluginsPath

◆ settingsPath

std::string rack::asset::settingsPath

◆ autosavePath

std::string rack::asset::autosavePath

◆ templatePath

std::string rack::asset::templatePath

◆ bundlePath

std::string rack::asset::bundlePath