ArgsManager::GetSettingsPath

Get settings file path, or return false if read-write settings were disabled with -nosettings.

Synopsis

Declared in <common/args.h>

[[requires_capability(0x7f2e381aeda8)]]
bool
GetSettingsPath(
    fs::path* filepath = nullptr,
    bool temp = false,
    bool backup = false) const;

Return Value

true if read-write settings are enabled.

Parameters

NameDescription
filepathIf non-null, set to the resolved settings file path.
tempResolve the path of the temporary settings file.
backupResolve the path of the backup settings file.