Changeset View
Changeset View
Standalone View
Standalone View
src/util/system.h
Show First 20 Lines • Show All 393 Lines • ▼ Show 20 Lines | public: | ||||
* network-specific. | * network-specific. | ||||
*/ | */ | ||||
bool InitSettings(std::string &error); | bool InitSettings(std::string &error); | ||||
/** | /** | ||||
* Get settings file path, or return false if read-write settings were | * Get settings file path, or return false if read-write settings were | ||||
* disabled with -nosettings. | * disabled with -nosettings. | ||||
*/ | */ | ||||
bool GetSettingsPath(fs::path *filepath = nullptr, bool temp = false) const; | bool GetSettingsPath(fs::path *filepath = nullptr, bool temp = false, | ||||
bool backup = false) const; | |||||
/** | /** | ||||
* Read settings file. Push errors to vector, or log them if null. | * Read settings file. Push errors to vector, or log them if null. | ||||
*/ | */ | ||||
bool ReadSettingsFile(std::vector<std::string> *errors = nullptr); | bool ReadSettingsFile(std::vector<std::string> *errors = nullptr); | ||||
/** | /** | ||||
* Write settings file. Push errors to vector, or log them if null. | * Write settings file or backup settings file. Push errors to vector, or | ||||
* log them if null. | |||||
*/ | */ | ||||
bool WriteSettingsFile(std::vector<std::string> *errors = nullptr) const; | bool WriteSettingsFile(std::vector<std::string> *errors = nullptr, | ||||
bool backup = false) const; | |||||
/** | /** | ||||
* Get current setting from config file or read/write settings file, | * Get current setting from config file or read/write settings file, | ||||
* ignoring nonpersistent command line or forced settings values. | * ignoring nonpersistent command line or forced settings values. | ||||
*/ | */ | ||||
util::SettingsValue GetPersistentSetting(const std::string &name) const; | util::SettingsValue GetPersistentSetting(const std::string &name) const; | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |