Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/ps/ConfigDB.h
/* Copyright (C) 2021 Wildfire Games. | /* Copyright (C) 2022 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 119 Lines • ▼ Show 20 Lines | public: | ||||
void SetValueBool(EConfigNamespace ns, const CStr& name, const bool value); | void SetValueBool(EConfigNamespace ns, const CStr& name, const bool value); | ||||
void SetValueList(EConfigNamespace ns, const CStr& name, std::vector<CStr> values); | void SetValueList(EConfigNamespace ns, const CStr& name, std::vector<CStr> values); | ||||
/** | /** | ||||
* Remove a config value in the specified namespace. | * Remove a config value in the specified namespace. | ||||
*/ | */ | ||||
void RemoveValue(EConfigNamespace ns, const CStr& name); | bool RemoveValue(EConfigNamespace ns, const CStr& name); | ||||
/** | /** | ||||
* Set the path to the config file used to populate the specified namespace | * Set the path to the config file used to populate the specified namespace | ||||
* Note that this function does not actually load the config file. Use | * Note that this function does not actually load the config file. Use | ||||
* the Reload() method if you want to read the config file at the same time. | * the Reload() method if you want to read the config file at the same time. | ||||
* | * | ||||
* 'path': The path to the config file. | * 'path': The path to the config file. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator