Update Boost filesystem API usage
This commit is contained in:
+3
-3
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user