MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / getPathForDSSI

Function getPathForDSSI

plugins/Cardinal/src/Ildaeil.cpp:143–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141}
142
143static const char* getPathForDSSI()
144{
145 static std::string path;
146
147 if (path.empty())
148 {
149 #if defined(CARLA_OS_HAIKU)
150 path = homeDir() + "/.dssi:/system/add-ons/media/dssiplugins:/system/lib/dssi";
151 #elif defined(CARLA_OS_MAC)
152 path = homeDir() + "/Library/Audio/Plug-Ins/DSSI:/Library/Audio/Plug-Ins/DSSI";
153 #elif defined(CARLA_OS_WASM)
154 path = "/dssi";
155 #elif defined(CARLA_OS_WIN)
156 path = getSpecialPath(kSpecialPathAppData) + "\\DSSI;";
157 path += getSpecialPath(kSpecialPathProgramFiles) + "\\DSSI";
158 #else
159 path = homeDir() + "/.dssi:/usr/lib/dssi:/usr/local/lib/dssi";
160 #endif
161 }
162
163 return path.c_str();
164}
165
166static const char* getPathForLV2()
167{

Callers 1

getPluginPathFunction · 0.85

Calls 4

c_strMethod · 0.80
homeDirFunction · 0.50
getSpecialPathFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected