File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -720,6 +720,13 @@ fs::path ArgsManager::GetConfigFilePath() const
720
720
return *Assert (m_config_path);
721
721
}
722
722
723
+ void ArgsManager::SetConfigFilePath (fs::path path)
724
+ {
725
+ LOCK (cs_args);
726
+ assert (!m_config_path);
727
+ m_config_path = path;
728
+ }
729
+
723
730
ChainType ArgsManager::GetChainType () const
724
731
{
725
732
std::variant<ChainType, std::string> arg = GetChainArg ();
Original file line number Diff line number Diff line change @@ -180,6 +180,7 @@ class ArgsManager
180
180
* Return config file path (read-only)
181
181
*/
182
182
fs::path GetConfigFilePath () const ;
183
+ void SetConfigFilePath (fs::path);
183
184
[[nodiscard]] bool ReadConfigFiles (std::string& error, bool ignore_invalid_keys = false );
184
185
185
186
/* *
You can’t perform that action at this time.
0 commit comments