MCPcopy Create free account
hub / github.com/ElementsProject/elements / GetSettingsPath

Method GetSettingsPath

src/util/system.cpp:514–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512}
513
514bool ArgsManager::GetSettingsPath(fs::path* filepath, bool temp) const
515{
516 if (IsArgNegated("-settings")) {
517 return false;
518 }
519 if (filepath) {
520 std::string settings = GetArg("-settings", BITCOIN_SETTINGS_FILENAME);
521 *filepath = fsbridge::AbsPathJoin(GetDataDirNet(), fs::PathFromString(temp ? settings + ".tmp" : settings));
522 }
523 return true;
524}
525
526static void SaveErrors(const std::vector<std::string> errors, std::vector<std::string>* error_out)
527{

Callers 1

InitSettingsFunction · 0.80

Calls 2

AbsPathJoinFunction · 0.85
PathFromStringFunction · 0.85

Tested by

no test coverage detected