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

Function getPathForLV2

plugins/Cardinal/src/Ildaeil.cpp:166–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166static const char* getPathForLV2()
167{
168 static std::string path;
169
170 if (path.empty())
171 {
172 #if defined(CARLA_OS_HAIKU)
173 path = homeDir() + "/.lv2:/system/add-ons/media/lv2plugins";
174 #elif defined(CARLA_OS_MAC)
175 path = homeDir() + "/Library/Audio/Plug-Ins/LV2:/Library/Audio/Plug-Ins/LV2";
176 #elif defined(CARLA_OS_WASM)
177 path = "/lv2";
178 #elif defined(CARLA_OS_WIN)
179 path = getSpecialPath(kSpecialPathAppData) + "\\LV2;";
180 path += getSpecialPath(kSpecialPathCommonProgramFiles) + "\\LV2";
181 #else
182 path = homeDir() + "/.lv2:/usr/lib/lv2:/usr/local/lib/lv2";
183 #endif
184 }
185
186 return path.c_str();
187}
188
189static const char* getPathForVST2()
190{

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