ManaPlus
|
#include <configuration.h>
Public Member Functions | |
Configuration () | |
~Configuration () | |
void | init (const std::string &filename, const UseVirtFs useResManager, const SkipError skipError) |
void | reInit () |
void | unload () |
DefaultsData & | getDefaultValues () |
void | write () |
void | addListener (const std::string &key, ConfigListener *const listener) |
void | removeListener (const std::string &key, ConfigListener *const listener) |
void | removeListeners (ConfigListener *const listener) |
void | setValue (const std::string &key, const std::string &value) |
void | incValue (const std::string &key) |
void | setSilent (const std::string &key, const std::string &value) |
void | setValue (const std::string &key, const char *const value) |
void | setSilent (const std::string &key, const char *const value) |
void | setValue (const std::string &key, const float value) |
void | setValue (const std::string &key, const double value) |
void | setValue (const std::string &key, const int value) |
void | setValueInt (const std::string &key, const int value) |
void | setValue (const std::string &key, const unsigned value) |
void | setValue (const std::string &key, const bool value) |
void | setSilent (const std::string &key, const bool value) |
int | resetIntValue (const std::string &key) |
bool | resetBoolValue (const std::string &key) |
const std::string & | getConfigPath () const |
int | getIntValue (const std::string &key) const |
float | getFloatValue (const std::string &key) const |
std::string | getStringValue (const std::string &key) const |
bool | getBoolValue (const std::string &key) const |
std::string | getDirectory () const |
void | removeOldKeys () |
std::string | getFileName () const |
void | writeUpdated () |
void | cleanDefaults () |
Public Member Functions inherited from ConfigurationObject | |
virtual | ~ConfigurationObject () |
void | deleteKey (const std::string &key) |
std::string | getValue (const std::string &key, const std::string &deflt) const |
int | getValue (const std::string &key, const int deflt) const |
int | getValueInt (const std::string &key, const int deflt) const |
bool | getValueBool (const std::string &key, const bool deflt) const |
unsigned | getValue (const std::string &key, const unsigned deflt) const |
double | getValue (const std::string &key, const double deflt) const |
void | clear () |
template<class IT , class T , class CONT > | |
void | setList (const std::string &name, IT begin, IT end, ConfigurationListManager< T, CONT > *manager) |
template<class T , class CONT > | |
CONT | getList (const std::string &name, CONT empty, ConfigurationListManager< T, CONT > *manager) |
Private Types | |
typedef std::list< ConfigListener * > | Listeners |
typedef Listeners::iterator | ListenerIterator |
typedef std::map< std::string, Listeners > | ListenerMap |
typedef ListenerMap::iterator | ListenerMapIterator |
Private Attributes | |
ListenerMap | mListenerMap |
std::string | mConfigPath |
DefaultsData | mDefaultsData |
Defaults of value for a given key. More... | |
std::string | mDirectory |
std::string | mFilename |
UseVirtFs | mUseResManager |
bool | mUpdated |
Additional Inherited Members | |
Protected Types inherited from ConfigurationObject | |
typedef std::map< std::string, std::string > | Options |
typedef std::list< ConfigurationObject * > | ConfigurationList |
Protected Member Functions inherited from ConfigurationObject | |
ConfigurationObject () | |
virtual void | initFromXML (const xmlNode *const parentNode) |
virtual void | writeToXML (const xmlTextWriterPtr writer) |
void | deleteList (const std::string &name) |
Protected Attributes inherited from ConfigurationObject | |
Options | mOptions |
std::map< std::string, ConfigurationList > | mContainerOptions |
Configuration handler for reading (and writing).
Definition at line 236 of file configuration.h.
|
private |
Definition at line 372 of file configuration.h.
|
private |
Definition at line 373 of file configuration.h.
|
private |
Definition at line 374 of file configuration.h.
|
private |
Definition at line 371 of file configuration.h.
Configuration::Configuration | ( | ) |
Definition at line 362 of file configuration.cpp.
Configuration::~Configuration | ( | ) |
void Configuration::addListener | ( | const std::string & | key, |
ConfigListener *const | listener | ||
) |
Adds a listener to the listen list of the specified config option.
Definition at line 906 of file configuration.cpp.
References anonymous_namespace{itemlinkhandler.cpp}::listener, and mListenerMap.
Referenced by ActorManager::ActorManager(), AvatarListBox::AvatarListBox(), ChatWindow::ChatWindow(), EmulateGuildTab::EmulateGuildTab(), GuildTab::GuildTab(), EventsManager::init(), TouchManager::init(), SoundManager::init(), Client::initConfigListeners(), LocalPlayer::LocalPlayer(), Map::Map(), MapLayer::MapLayer(), Minimap::Minimap(), PartyTab::PartyTab(), NpcDialog::postInit(), WhoIsOnline::postInit(), Being::postInit(), Gui::postInit(), Theme::Theme(), Viewport::Viewport(), and WindowMenu::WindowMenu().
void Configuration::cleanDefaults | ( | ) |
Clean up the default values member.
Definition at line 378 of file configuration.cpp.
References mDefaultsData.
Referenced by init(), setBrandingDefaults(), setConfigDefaults(), setFeaturesDefaults(), setPathsDefaults(), unload(), and ~Configuration().
bool Configuration::getBoolValue | ( | const std::string & | key | ) | const |
Definition at line 597 of file configuration.cpp.
References CAST_S32, data, VariableData::DATA_BOOL, VariableData::DATA_FLOAT, VariableData::DATA_INT, VariableData::DATA_STRING, getBoolFromString(), GETLOG, mConfigPath, mDefaultsData, ConfigurationObject::mOptions, and reportAlways.
Referenced by ChangeDisplay::action(), Setup_Video::action(), ChatWindow::action(), SkillDialog::action(), ChatWindow::addChannelTab(), PopupMenu::addFollow(), Game::addWatermark(), ChatWindow::addWhisper(), ChatWindow::addWhisperTab(), Game::adjustPerfomance(), ChatWindow::adjustTabSize(), Setup_Audio::apply(), Setup_Misc::apply(), Setup_Video::apply(), applyEffectByOption(), applyEffectByOption1(), WindowManager::applyGamma(), WindowManager::applyGrabMode(), DialogsManager::attributeChanged(), ChatWindow::attributeChanged(), BattleTab::BattleTab(), Ea::ChatHandler::ChatHandler(), ChatWindow::chatInput(), ChatTab::chatLog(), ChatWindow::ChatWindow(), Ea::LoginHandler::chooseServer(), Ea::ChatHandler::clear(), TradeWindow::completeTrade(), createGuiWindows(), GraphicsManager::createRenderers(), Game::createScreenshot(), Ea::PartyRecv::createTab(), EAthena::ClanRecv::createTab(), GuildManager::createTab(), EmulateGuildTab::EmulateGuildTab(), ActorManager::findNearestLivingBeing(), LocalPlayer::fixAttackTarget(), ChatInput::focusLost(), Game::Game(), Client::gameInit(), MobileOpenGLScreenshotHelper::getScreenshot(), OpenGLScreenshotHelper::getScreenshot(), GuildTab::GuildTab(), WhoIsOnline::handleLink(), EventsManager::init(), GameModifiers::init(), Joystick::init(), KeyboardConfig::init(), TouchManager::init(), Settings::init(), SoundManager::init(), Client::initFeatures(), GraphicsManager::initGraphics(), Client::initGraphics(), Map::initializeParticleEffects(), GraphicsManager::initOpenGLFunctions(), Dirs::initScreenshotDir(), Client::initSoundManager(), SetupItem::load(), WhoIsOnline::loadList(), WhoIsOnline::loadWebList(), LocalPlayer::LocalPlayer(), UpdaterWindow::logic(), Map::Map(), Joystick::open(), DialogsManager::openErrorDialog(), ActorManager::optionChanged(), EventsManager::optionChanged(), ChatWindow::optionChanged(), Minimap::optionChanged(), NpcDialog::optionChanged(), WhoIsOnline::optionChanged(), GuiConfigListener::optionChanged(), Viewport::optionChanged(), Client::optionChanged(), LocalPlayer::optionChanged(), AvatarListBox::optionChanged(), EmulateGuildTab::optionChanged(), GuildTab::optionChanged(), PartyTab::optionChanged(), TouchManager::optionChanged(), Map::optionChanged(), MapLayer::optionChanged(), SoundManager::optionChanged(), PartyTab::PartyTab(), LocalPlayer::pickedUp(), SocialWindow::postInit(), WhoIsOnline::postInit(), Gui::postInit(), MobileOpenGLScreenshotHelper::prepare(), OpenGLScreenshotHelper::prepare(), Ea::BeingRecv::processBeingRemove(), EAthena::CharServerRecv::processChangeMapServer(), TmwAthena::CharServerRecv::processChangeMapServer(), EAthena::CharServerRecv::processCharMapInfo(), TmwAthena::CharServerRecv::processCharMapInfo(), EAthena::GuildRecv::processGuildPositionInfo(), Ea::ChatRecv::processMVPEffect(), EAthena::PlayerRecv::processOnlineList(), TmwAthena::PlayerRecv::processOnlineList(), ShopWindow::processRequest(), ChatInput::processVisible(), TmwAthena::ChatRecv::processWhisperContinue(), MapReader::readTileset(), Map::reduce(), TmwAthena::BuySellHandler::requestBuyList(), TmwAthena::BuySellHandler::requestSellList(), Being::reReadConfig(), Game::resetAdjustLevel(), ChatTab::saveToLogFile(), TmwAthena::BuySellHandler::sendBuyRequest(), ShopWindow::sendMessage(), TmwAthena::BuySellHandler::sendSellRequest(), ServerDialog::ServerDialog(), Desktop::setBestFittingWallpaper(), Minimap::setMap(), TradeWindow::setMoney(), Graphics::setOpenGLMode(), ParticleEngine::setupEngine(), GraphicsManager::setVideoMode(), PopupMenu::showDropPopup(), ChatWindow::showGMTab(), PopupMenu::showItemPopup(), Being::showName(), PopupMenu::showPopup(), ConfigManager::storeSafeParameters(), SoundManager::testAudio(), updateEnv(), SocialNavigationTab::updateList(), GraphicsManager::updateTextureFormat(), and ItemShortcut::useItem().
|
inline |
Definition at line 336 of file configuration.h.
References mConfigPath.
Referenced by Client::gameInit().
|
inline |
Definition at line 259 of file configuration.h.
References mDefaultsData.
Referenced by setBrandingDefaults(), setConfigDefaults(), setConfigDefaults2(), setFeaturesDefaults(), and setPathsDefaults().
|
inline |
Definition at line 355 of file configuration.h.
References mDirectory.
Referenced by Dirs::updateDataPath().
|
inline |
Definition at line 360 of file configuration.h.
References mFilename.
Referenced by setBrandingDefaults(), setConfigDefaults(), setConfigDefaults2(), setFeaturesDefaults(), and setPathsDefaults().
float Configuration::getFloatValue | ( | const std::string & | key | ) | const |
Definition at line 542 of file configuration.cpp.
References data, VariableData::DATA_BOOL, VariableData::DATA_FLOAT, VariableData::DATA_INT, VariableData::DATA_STRING, GETLOG, mConfigPath, mDefaultsData, ConfigurationObject::mOptions, and reportAlways.
Referenced by WindowManager::applyGamma(), GraphicsManager::initGraphics(), Client::optionChanged(), Map::optionChanged(), and Text::Text().
int Configuration::getIntValue | ( | const std::string & | key | ) | const |
returns a value corresponding to the given key. The default value returned in based on fallbacks registry.
Definition at line 404 of file configuration.cpp.
References CAST_S32, data, VariableData::DATA_BOOL, VariableData::DATA_FLOAT, VariableData::DATA_INT, VariableData::DATA_STRING, GETLOG, mConfigPath, mDefaultsData, ConfigurationObject::mOptions, and reportAlways.
Referenced by Setup_Video::action(), DidYouKnowWindow::action(), RegisterDialog::action(), Net::Download::addProxy(), Game::adjustPerfomance(), LocalPlayer::afkRespond(), Setup_Theme::apply(), Setup_Video::apply(), WindowManager::applyKeyRepeat(), WindowManager::applyScale(), WindowManager::applyVSync(), CharacterViewNormal::CharacterViewNormal(), CharCreateDialog::CharCreateDialog(), CharSelectDialog::CharSelectDialog(), ChatTab::chatLog(), ChatTab::ChatTab(), ConfigManager::checkConfigVersion(), GraphicsManager::createRenderers(), NpcDialog::createSkinControls(), GraphicsManager::detectPixelSize(), EquipmentWindow::EquipmentWindow(), TouchManager::executeAction(), Client::gameInit(), Being::getDefaultEffectId(), Being::getHitEffect(), EventsManager::handleActive(), Being::handleSkill(), Being::handleSkillCasting(), GameModifiers::init(), BuyDialog::init(), Joystick::init(), KeyboardConfig::init(), TouchManager::init(), BeingInfo::init(), SoundManager::init(), GraphicsManager::initGraphics(), Client::initSoundManager(), InventoryWindow::InventoryWindow(), SetupItem::load(), MiniStatusWindow::loadBars(), DidYouKnowWindow::loadData(), ItemDB::loadXmlFile(), LocalPlayer::LocalPlayer(), NpcDialog::NpcDialog(), Joystick::open(), WindowMenu::optionChanged(), Viewport::optionChanged(), Client::optionChanged(), Being::optionChanged(), LocalPlayer::optionChanged(), TouchManager::optionChanged(), Map::optionChanged(), SoundManager::optionChanged(), SkillDialog::playCastingDstTileEffect(), SkillDialog::playRemoveEffect(), SkillDialog::playUpdateEffect(), SetupWindow::postInit(), Being::postInit(), Gui::postInit(), BeingCommon::readObjectNodes(), RegisterDialog::RegisterDialog(), Being::reReadConfig(), Game::resetAdjustLevel(), ServerDialog::ServerDialog(), CharCreateDialog::setAttributes(), CharCreateDialog::setDefaultGender(), TmwAthena::setGm(), Being::setSpiritBalls(), Setup_Input::Setup_Input(), Setup_Joystick::Setup_Joystick(), Setup_Video::Setup_Video(), ParticleEngine::setupEngine(), GraphicsManager::setVideoMode(), ShopWindow::ShopWindow(), ChatWindow::showGMTab(), Game::slowLogic(), ConfigManager::storeSafeParameters(), SoundManager::testAudio(), ActorManager::updateBadges(), GraphicsManager::updateDebugLog(), updateEnv(), Gui::updateFonts(), Game::updateFrameRate(), GraphicsManager::updateTextureCompressionFormat(), and WindowMenu::WindowMenu().
std::string Configuration::getStringValue | ( | const std::string & | key | ) | const |
Definition at line 488 of file configuration.cpp.
References data, VariableData::DATA_BOOL, VariableData::DATA_FLOAT, VariableData::DATA_INT, VariableData::DATA_STRING, GETLOG, mConfigPath, mDefaultsData, ConfigurationObject::mOptions, reportAlways, and Catch::toString().
Referenced by SetupItemSound::action(), Being::addEffect(), Net::Download::addProxy(), SkillDialog::addSkill(), Setup_Theme::apply(), Setup_Theme::cancel(), PlayerRelationsManager::checkName(), CrazyMoves::crazyMoveA(), UpdaterWindow::download(), ServerDialog::downloadServerList(), EffectManager::EffectManager(), EquipmentWindow::fillBoxes(), Theme::fillFontsList(), Theme::fillSkinsList(), Theme::fillSoundsList(), SkillDialog::getDefaultSkillIcon(), ShadersManager::getGles2Program(), StatusEffect::getIcon(), Item::getImage(), getLang(), getLangShort(), getLangSimple(), ShadersManager::getSimpleProgram(), SpriteDef::includeSprite(), initDefaultThemePath(), initDefaultWallpaperPaths(), Client::initFeatures(), GraphicsManager::initGraphics(), Dirs::initScreenshotDir(), WindowManager::initTitle(), Dirs::initUpdatesDir(), SetupItem::load(), AvatarDB::load(), CharDB::load(), ClanDb::load(), ColorDB::load(), CommandsDB::load(), DeadDB::load(), ElementalDb::load(), EmoteDB::load(), GroupDb::load(), HomunculusDB::load(), HorseDB::load(), ItemDB::load(), ItemFieldDb::load(), ItemOptionDb::load(), LanguageDb::load(), MapDB::load(), MercenaryDB::load(), ModDB::load(), MonsterDB::load(), NetworkDb::load(), NPCDB::load(), NpcDialogDB::load(), PETDB::load(), QuestDb::load(), SkillUnitDb::load(), SoundDB::load(), StatDb::load(), StatusEffectDB::load(), TextDb::load(), UnitsDb::load(), SpriteDef::load(), PlayerInfo::loadData(), Client::loadData(), loadDB(), MapReader::loadEmptyAtlas(), DidYouKnowWindow::loadFile(), HelpWindow::loadFile(), Net::loadIgnorePackets(), TextCommand::loadImage(), loadMusic(), PaletteDB::loadPalette(), UpdaterWindow::loadPatch(), ServerDialog::loadServers(), SkillDialog::loadSkillData(), SkillDialog::loadSkills(), EmoteDB::loadSpecialXmlFile(), HelpWindow::loadTags(), ClanDb::loadXmlFile(), DeadDB::loadXmlFile(), ElementalDb::loadXmlFile(), EmoteDB::loadXmlFile(), GroupDb::loadXmlFile(), HomunculusDB::loadXmlFile(), HorseDB::loadXmlFile(), MercenaryDB::loadXmlFile(), MonsterDB::loadXmlFile(), NPCDB::loadXmlFile(), PETDB::loadXmlFile(), SkillUnitDb::loadXmlFile(), StatusEffectDB::loadXmlFile(), UnitsDb::loadXmlFile(), ServerDialog::needUpdateServers(), ChatWindow::parseGlobalsFilter(), ChatWindow::parseHighlights(), NpcDialog::parseListItems(), SoundManager::playGuiSound(), SoundManager::playSfx(), Gui::postInit(), EquipmentWindow::prepareSlotNames(), Theme::prepareThemePath(), MapDB::readAtlas(), Theme::resolveThemePath(), Being::setGender(), Being::setHairTempSprite(), SkillData::setIcon(), Item::setId(), ItemPopup::setItem(), setLangEnv(), Being::setLanguageId(), Minimap::setMap(), ChatLogger::setServerName(), Being::setSpriteCards(), Being::setSpriteColor(), Being::setSpriteColorId(), Being::setSpriteId(), Being::setTempSprite(), Setup_Perfomance::Setup_Perfomance(), Setup_Theme::Setup_Theme(), ActorSprite::setupSpriteDisplay(), CutInWindow::show(), Being::showAwayBadge(), Being::showClanBadge(), Being::showGmBadge(), Being::showGuildBadge(), Being::showInactiveBadge(), Being::showNameBadge(), Being::showPartyBadge(), Being::showShopBadge(), Being::showTeamBadge(), ConfigManager::storeSafeParameters(), UserAgent::update(), Dirs::updateDataPath(), Gui::updateFonts(), MapReader::updateMusic(), and WindowManager::updateTitle().
void Configuration::incValue | ( | const std::string & | key | ) |
Definition at line 255 of file configuration.cpp.
References GETLOG, ConfigurationObject::mOptions, and setValue().
Referenced by Game::Game(), and Client::gameInit().
void Configuration::init | ( | const std::string & | filename, |
const UseVirtFs | useResManager, | ||
const SkipError | skipError | ||
) |
Reads config file and parse all options into memory.
filename | path to config file |
useResManager | Make use of the resource manager. |
Definition at line 739 of file configuration.cpp.
References cleanDefaults(), ConfigurationObject::clear(), VirtFs::exists(), Files::existsLocal(), getFileDir(), getRealPath(), ConfigurationObject::initFromXML(), Logger::log(), Logger::log1(), logger, mConfigPath, mDirectory, mFilename, mUseResManager, XML::Document::rootNode(), and UseVirtFs_true.
Referenced by Client::gameExec(), Client::gameInit(), TestMain::initConfig(), ConfigManager::initConfiguration(), Client::initFeatures(), Dirs::initRootDir(), ConfigManager::initServerConfig(), Client::loadData(), and TestMain::writeConfig().
void Configuration::reInit | ( | ) |
Definition at line 793 of file configuration.cpp.
References ConfigurationObject::initFromXML(), Logger::log(), logger, mFilename, mUseResManager, XML::Document::rootNode(), and SkipError_false.
void Configuration::removeListener | ( | const std::string & | key, |
ConfigListener *const | listener | ||
) |
Removes a listener from the listen list of the specified config option.
Definition at line 912 of file configuration.cpp.
References anonymous_namespace{itemlinkhandler.cpp}::listener, and mListenerMap.
Referenced by Being::~Being(), LocalPlayer::~LocalPlayer(), MapLayer::~MapLayer(), Theme::~Theme(), and WindowMenu::~WindowMenu().
void Configuration::removeListeners | ( | ConfigListener *const | listener | ) |
Definition at line 939 of file configuration.cpp.
References FOR_EACH, anonymous_namespace{itemlinkhandler.cpp}::listener, mListenerMap, and VirtFs::remove().
Referenced by EventsManager::shutdown(), TouchManager::shutdown(), SoundManager::shutdown(), ActorManager::~ActorManager(), AvatarListBox::~AvatarListBox(), ChatWindow::~ChatWindow(), EmulateGuildTab::~EmulateGuildTab(), Gui::~Gui(), GuildTab::~GuildTab(), LocalPlayer::~LocalPlayer(), Map::~Map(), Minimap::~Minimap(), NpcDialog::~NpcDialog(), PartyTab::~PartyTab(), Viewport::~Viewport(), and WhoIsOnline::~WhoIsOnline().
void Configuration::removeOldKeys | ( | ) |
Definition at line 945 of file configuration.cpp.
References ConfigurationObject::deleteKey(), empty, Logger::log(), logger, ConfigurationObject::mOptions, Catch::toString(), and unusedKeys.
Referenced by Client::gameClear().
bool Configuration::resetBoolValue | ( | const std::string & | key | ) |
Definition at line 666 of file configuration.cpp.
References data, VariableData::DATA_BOOL, GETLOG, mConfigPath, mDefaultsData, reportAlways, and setValue().
Referenced by GameModifiers::resetModifiers().
int Configuration::resetIntValue | ( | const std::string & | key | ) |
Definition at line 457 of file configuration.cpp.
References data, VariableData::DATA_INT, GETLOG, mConfigPath, mDefaultsData, reportAlways, and setValue().
Referenced by GameModifiers::resetModifiers().
|
inline |
Definition at line 328 of file configuration.h.
References setSilent().
|
inline |
void Configuration::setSilent | ( | const std::string & | key, |
const std::string & | value | ||
) |
Definition at line 263 of file configuration.cpp.
References ConfigurationObject::setValue().
Referenced by Game::adjustPerfomance(), and setSilent().
|
inline |
|
inline |
|
inline |
Definition at line 308 of file configuration.h.
References setValue(), and Catch::toString().
|
inline |
Definition at line 304 of file configuration.h.
References setValue(), and Catch::toString().
|
inline |
Definition at line 312 of file configuration.h.
References setValue(), and Catch::toString().
|
virtual |
Sets an option using a string value.
key | Option identifier. |
value | Value. |
Reimplemented from ConfigurationObject.
Definition at line 239 of file configuration.cpp.
References FOR_EACH, mListenerMap, mUpdated, and ConfigurationObject::setValue().
Referenced by Setup_Video::action(), BuyDialog::action(), ChatWindow::action(), DidYouKnowWindow::action(), QuitDialog::action(), Game::adjustPerfomance(), Setup_Joystick::apply(), Setup_Theme::apply(), Setup_Video::apply(), Setup_Video::cancel(), GameModifiers::changeGameModifiers(), GameModifiers::changeMode(), ConfigManager::checkConfigVersion(), ServerDialog::connectToSelectedServer(), GraphicsManager::detectGraphics(), GraphicsManager::detectVideoSettings(), ServerDialog::downloadServerList(), Joystick::finishCalibration(), incValue(), GuildManager::init(), TestMain::initConfig(), ConfigManager::initConfiguration(), GraphicsManager::initGraphics(), GraphicsManager::initOpenGLFunctions(), Dirs::initScreenshotDir(), TestMain::invokeMobileOpenBatchTest(), TestMain::invokeModernOpenBatchTest(), TestMain::invokeModernOpenGLRenderTest(), TestMain::invokeNormalOpenBatchTest(), TestMain::invokeNormalOpenGLRenderTest(), TestMain::invokeSafeOpenBatchTest(), TestMain::invokeSafeOpenGLRenderTest(), TestMain::invokeSoftwareRenderTest(), TestMain::invokeTest(), TestMain::invokeTest4(), DidYouKnowWindow::loadData(), Ea::LoginHandler::loginOrRegister(), Joystick::open(), LoginDialog::prepareUpdate(), EAthena::LoginRecv::processLoginData(), TmwAthena::LoginRecv::processLoginData(), Game::resetAdjustLevel(), resetBoolValue(), resetIntValue(), WindowManager::resizeVideo(), SetupItem::save(), EmoteShortcut::save(), ItemShortcut::save(), ShortcutBase::save(), OutfitWindow::save(), SpellManager::save(), MiniStatusWindow::saveBars(), WindowMenu::saveButtons(), ServerDialog::saveCustomServers(), LocalPlayer::saveHomes(), Setup_Mods::saveMods(), PlayerInfo::saveProtectedItems(), ChatWindow::saveTab(), Window::saveWindowState(), LocalPlayer::setAfkMessage(), setDefaultOption(), GameModifiers::setQuickDropCounter(), ShopWindow::setShopName(), setValue(), setValueInt(), GraphicsManager::setVideoMode(), PlayerRelationsManager::store(), InputManager::store(), ActorManager::storeAttackList(), ConfigManager::storeSafeParameters(), InventoryWindow::storeSortOrder(), TestMain::writeConfig(), ChatWindow::~ChatWindow(), Minimap::~Minimap(), and UserPalette::~UserPalette().
|
inline |
Definition at line 320 of file configuration.h.
References setValue(), and Catch::toString().
|
inline |
Definition at line 316 of file configuration.h.
References setValue(), and Catch::toString().
Referenced by GraphicsManager::setVideoMode().
void Configuration::unload | ( | ) |
Definition at line 394 of file configuration.cpp.
References cleanDefaults(), ConfigurationObject::clear(), mConfigPath, mDirectory, mFilename, mUseResManager, and UseVirtFs_false.
void Configuration::write | ( | ) |
Writes the current settings back to the config file.
Definition at line 859 of file configuration.cpp.
References BLOCK_END, BLOCK_START, Logger::log1(), logger, mConfigPath, mUpdated, reportAlways, and ConfigurationObject::writeToXML().
Referenced by QuitDialog::action(), SetupWindow::action(), GraphicsManager::detectGraphics(), Client::gameClear(), TestMain::invokeMobileOpenBatchTest(), TestMain::invokeModernOpenBatchTest(), TestMain::invokeModernOpenGLRenderTest(), TestMain::invokeNormalOpenBatchTest(), TestMain::invokeNormalOpenGLRenderTest(), TestMain::invokeSafeOpenBatchTest(), TestMain::invokeSafeOpenGLRenderTest(), TestMain::invokeSoftwareRenderTest(), TestMain::invokeTest(), PlayerInfo::saveProtectedItems(), Client::stateConnectServer1(), PlayerRelationsManager::store(), ConfigManager::storeSafeParameters(), TestMain::writeConfig(), writeUpdated(), and Game::~Game().
void Configuration::writeUpdated | ( | ) |
Definition at line 853 of file configuration.cpp.
References mUpdated, and write().
Referenced by Game::slowLogic().
|
private |
Definition at line 378 of file configuration.h.
Referenced by getBoolValue(), getConfigPath(), getFloatValue(), getIntValue(), getStringValue(), init(), resetBoolValue(), resetIntValue(), unload(), and write().
|
private |
Defaults of value for a given key.
Definition at line 380 of file configuration.h.
Referenced by cleanDefaults(), getBoolValue(), getDefaultValues(), getFloatValue(), getIntValue(), getStringValue(), resetBoolValue(), and resetIntValue().
|
private |
Definition at line 381 of file configuration.h.
Referenced by getDirectory(), init(), and unload().
|
private |
Definition at line 382 of file configuration.h.
Referenced by getFileName(), init(), reInit(), and unload().
|
private |
Definition at line 375 of file configuration.h.
Referenced by addListener(), removeListener(), removeListeners(), and setValue().
|
private |
Definition at line 384 of file configuration.h.
Referenced by setValue(), write(), and writeUpdated().
|
private |
Definition at line 383 of file configuration.h.