| 161 | } |
| 162 | |
| 163 | static const char* _getConfigDirForPlugin() |
| 164 | { |
| 165 | #if defined(DISTRHO_OS_MAC) || defined(DISTRHO_OS_WASM) || defined(DISTRHO_OS_WINDOWS) |
| 166 | return _getDocumentsDirForPlugin(); |
| 167 | #else |
| 168 | static String dir; |
| 169 | |
| 170 | if (dir.isEmpty()) |
| 171 | { |
| 172 | dir = _getConfigDir(); |
| 173 | dir += DISTRHO_PLUGIN_NAME DISTRHO_OS_SEP_STR; |
| 174 | _createDirIfNeeded(dir); |
| 175 | } |
| 176 | |
| 177 | return dir; |
| 178 | #endif |
| 179 | } |
| 180 | |
| 181 | static const char* _getDocumentsDir() |
| 182 | { |
no test coverage detected