| 512 | } |
| 513 | |
| 514 | bool 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 | |
| 526 | static void SaveErrors(const std::vector<std::string> errors, std::vector<std::string>* error_out) |
| 527 | { |
no test coverage detected