Update Boost filesystem API usage

This commit is contained in:
root
2026-04-28 06:13:24 +00:00
parent 79b60cb248
commit bd4b484374
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -478,7 +478,7 @@ void ClearDatadirCache()
boost::filesystem::path GetConfigFile()
{
boost::filesystem::path pathConfigFile(GetArg("-conf", "agrarian.conf"));
if (!pathConfigFile.is_complete())
if (!pathConfigFile.is_absolute())
pathConfigFile = GetDataDir(false) / pathConfigFile;
return pathConfigFile;
@@ -487,7 +487,7 @@ boost::filesystem::path GetConfigFile()
boost::filesystem::path GetMasternodeConfigFile()
{
boost::filesystem::path pathConfigFile(GetArg("-mnconf", "masternode.conf"));
if (!pathConfigFile.is_complete()) pathConfigFile = GetDataDir() / pathConfigFile;
if (!pathConfigFile.is_absolute()) pathConfigFile = GetDataDir() / pathConfigFile;
return pathConfigFile;
}
@@ -523,7 +523,7 @@ void ReadConfigFile(map<string, string>& mapSettingsRet,
boost::filesystem::path GetPidFile()
{
boost::filesystem::path pathPidFile(GetArg("-pid", "agrariand.pid"));
if (!pathPidFile.is_complete()) pathPidFile = GetDataDir() / pathPidFile;
if (!pathPidFile.is_absolute()) pathPidFile = GetDataDir() / pathPidFile;
return pathPidFile;
}