ArgsManager::WriteSettingsFile

Write settings file or backup settings file. Push errors to vector, or log them if null.

Synopsis

Declared in <common/args.h>

[[requires_capability(0x7f2e381af028)]]
bool
WriteSettingsFile(
    std::vector<std::string>* errors = nullptr,
    bool backup = false) const;

Return Value

true if the settings file was written successfully.

Parameters

NameDescription
errorsIf non-null, populated with any write errors.
backupWrite the backup settings file instead of the main one.