MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / TryReadConfigFile

Function TryReadConfigFile

src/Main.cxx:541–549  ·  view source on GitHub ↗

* Wrapper for ReadConfigFile() which returns false if the file was * not found. */

Source from the content-addressed store, hash-verified

539 * not found.
540 */
541static bool
542TryReadConfigFile(ConfigData &config, Path path)
543{
544 if (!FileExists(path))
545 return false;
546
547 ReadConfigFile(config, path);
548 return true;
549}
550
551static void
552LoadConfigFile(JNIEnv *env, ConfigData &config)

Callers 1

LoadConfigFileFunction · 0.85

Calls 1

ReadConfigFileFunction · 0.85

Tested by

no test coverage detected