We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3206d1a commit 615da97Copy full SHA for 615da97
src/util/system.cpp
@@ -518,12 +518,12 @@ bool ArgsManager::InitSettings(std::string& error)
518
519
bool ArgsManager::GetSettingsPath(fs::path* filepath, bool temp) const
520
{
521
- if (IsArgNegated("-settings")) {
+ fs::path settings = GetPathArg("-settings", fs::path{BITCOIN_SETTINGS_FILENAME});
522
+ if (settings.empty()) {
523
return false;
524
}
525
if (filepath) {
- std::string settings = GetArg("-settings", BITCOIN_SETTINGS_FILENAME);
526
- *filepath = fsbridge::AbsPathJoin(GetDataDirNet(), fs::PathFromString(temp ? settings + ".tmp" : settings));
+ *filepath = fsbridge::AbsPathJoin(GetDataDirNet(), temp ? settings + ".tmp" : settings);
527
528
return true;
529
0 commit comments