MCPcopy Create free account
hub / github.com/DISTRHO/DPF / _getConfigDirForPlugin

Function _getConfigDirForPlugin

distrho/src/DistrhoUtils.cpp:163–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163static 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
181static const char* _getDocumentsDir()
182{

Callers 1

getSpecialDirFunction · 0.85

Calls 3

_getConfigDirFunction · 0.85
_createDirIfNeededFunction · 0.85

Tested by

no test coverage detected