diff options
Diffstat (limited to 'src/util/system.h')
-rw-r--r-- | src/util/system.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/util/system.h b/src/util/system.h index a7f4d16911..bfc9698221 100644 --- a/src/util/system.h +++ b/src/util/system.h @@ -161,6 +161,10 @@ struct SectionInfo int m_line; }; +std::string SettingToString(const util::SettingsValue&, const std::string&); +int64_t SettingToInt(const util::SettingsValue&, int64_t); +bool SettingToBool(const util::SettingsValue&, bool); + class ArgsManager { public: @@ -449,6 +453,12 @@ protected: bool WriteSettingsFile(std::vector<std::string>* errors = nullptr) const; /** + * Get current setting from config file or read/write settings file, + * ignoring nonpersistent command line or forced settings values. + */ + util::SettingsValue GetPersistentSetting(const std::string& name) const; + + /** * Access settings with lock held. */ template <typename Fn> |