| 164 | } |
| 165 | |
| 166 | static 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 | |
| 189 | static const char* getPathForVST2() |
| 190 | { |
no test coverage detected