ManaPlus
Macros | Variables
configuration.cpp File Reference

(dc3c359)

#include "configuration.h"
#include "variabledata.h"
#include "fs/files.h"
#include "fs/paths.h"
#include "fs/virtfs/fs.h"
#include "listeners/configlistener.h"
#include "utils/cast.h"
#include "utils/checkutils.h"
#include "utils/foreach.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define GETLOG()
 

Variables

Configuration config
 
Configuration serverConfig
 
Configuration features
 
Configuration branding
 
Configuration paths
 
const std::string unusedKeys []
 

Macro Definition Documentation

◆ GETLOG

#define GETLOG ( )

Variable Documentation

◆ branding

Configuration branding

◆ config

Configuration config

Definition at line 51 of file configuration.cpp.

Referenced by ChangeDisplay::action(), SetupWindow::action(), Setup_Video::action(), DidYouKnowWindow::action(), QuitDialog::action(), SkillDialog::action(), ChatWindow::action(), BuyDialog::action(), anonymous_namespace{client.cpp}::LoginListener::action(), ActorManager::ActorManager(), ChatWindow::addChannelTab(), UserPalette::addColor(), Net::Download::addProxy(), Game::addWatermark(), ChatWindow::addWhisper(), ChatWindow::addWhisperTab(), Game::adjustPerfomance(), ChatWindow::adjustTabSize(), LocalPlayer::afkRespond(), Catch::alwaysFalse(), Setup_Audio::apply(), Setup_Misc::apply(), Setup_Joystick::apply(), Setup_Theme::apply(), Setup_Video::apply(), applyEffectByOption(), applyEffectByOption1(), WindowManager::applyGamma(), WindowManager::applyGrabMode(), WindowManager::applyKeyRepeat(), WindowManager::applyScale(), WindowManager::applyVSync(), DialogsManager::attributeChanged(), ChatWindow::attributeChanged(), AvatarListBox::AvatarListBox(), ConfigManager::backupConfig(), BattleTab::BattleTab(), Setup_Theme::cancel(), Setup_Video::cancel(), GameModifiers::changeGameModifiers(), GameModifiers::changeMode(), Actions::changeRelation(), CharacterViewNormal::CharacterViewNormal(), CharCreateDialog::CharCreateDialog(), CharSelectDialog::CharSelectDialog(), Ea::ChatHandler::ChatHandler(), ChatWindow::chatInput(), ChatTab::chatLog(), ChatTab::ChatTab(), ChatWindow::ChatWindow(), ConfigManager::checkConfigVersion(), PlayerRelationsManager::checkName(), Ea::LoginHandler::chooseServer(), Ea::ChatHandler::clear(), TradeWindow::completeTrade(), ServerDialog::connectToSelectedServer(), CrazyMoves::crazyMoveA(), createGuiWindows(), GraphicsManager::createRenderers(), Game::createScreenshot(), NpcDialog::createSkinControls(), Ea::PartyRecv::createTab(), GuildManager::createTab(), GraphicsManager::detectGraphics(), GraphicsManager::detectPixelSize(), GraphicsManager::detectVideoSettings(), Actions::doSit(), ServerDialog::downloadServerList(), EmulateGuildTab::EmulateGuildTab(), EquipmentWindow::EquipmentWindow(), TouchManager::executeAction(), ActorManager::findNearestLivingBeing(), Joystick::finishCalibration(), LocalPlayer::fixAttackTarget(), ChatInput::focusLost(), Game::Game(), Client::gameClear(), Client::gameInit(), SetupItem::getConfig(), getLang(), getLangShort(), getLangSimple(), Viewport::getMouseTile(), MobileOpenGLScreenshotHelper::getScreenshot(), OpenGLScreenshotHelper::getScreenshot(), GuildTab::GuildTab(), EventsManager::handleActive(), WhoIsOnline::handleLink(), GameModifiers::init(), EventsManager::init(), KeyboardConfig::init(), SoundManager::init(), Joystick::init(), Settings::init(), BuyDialog::init(), TouchManager::init(), Client::initConfigListeners(), ConfigManager::initConfiguration(), GraphicsManager::initGraphics(), Client::initGraphics(), Map::initializeParticleEffects(), GraphicsManager::initOpenGLFunctions(), Dirs::initScreenshotDir(), Client::initSoundManager(), Dirs::initUpdatesDir(), InventoryWindow::InventoryWindow(), MiniStatusWindow::loadBars(), WindowMenu::loadButtons(), ServerDialog::loadCustomServers(), DidYouKnowWindow::loadData(), Net::loadIgnorePackets(), WhoIsOnline::loadList(), loadReplaceLayer(), WhoIsOnline::loadWebList(), Window::loadWindowState(), LocalPlayer::LocalPlayer(), EventsManager::logEvent(), UpdaterWindow::logic(), Map::Map(), MapLayer::MapLayer(), Minimap::Minimap(), ServerDialog::needUpdateServers(), NpcDialog::NpcDialog(), Joystick::open(), DialogsManager::openErrorDialog(), GuildTab::optionChanged(), PartyTab::optionChanged(), EmulateGuildTab::optionChanged(), GuiConfigListener::optionChanged(), AvatarListBox::optionChanged(), SoundManager::optionChanged(), EventsManager::optionChanged(), Minimap::optionChanged(), Client::optionChanged(), WindowMenu::optionChanged(), WhoIsOnline::optionChanged(), Viewport::optionChanged(), MapLayer::optionChanged(), TouchManager::optionChanged(), NpcDialog::optionChanged(), ChatWindow::optionChanged(), Map::optionChanged(), LocalPlayer::optionChanged(), ActorManager::optionChanged(), Being::optionChanged(), ChatWindow::parseGlobalsFilter(), ChatWindow::parseHighlights(), PartyTab::PartyTab(), LocalPlayer::pickedUp(), SoundManager::playGuiSound(), SetupWindow::postInit(), SocialWindow::postInit(), WhoIsOnline::postInit(), NpcDialog::postInit(), Gui::postInit(), Being::postInit(), MobileOpenGLScreenshotHelper::prepare(), OpenGLScreenshotHelper::prepare(), Theme::prepareThemePath(), Ea::BeingRecv::processBeingRemove(), TmwAthena::CharServerRecv::processChangeMapServer(), EAthena::CharServerRecv::processChangeMapServer(), TmwAthena::CharServerRecv::processCharMapInfo(), EAthena::CharServerRecv::processCharMapInfo(), EAthena::GuildRecv::processGuildPositionInfo(), TmwAthena::LoginRecv::processLoginData(), EAthena::LoginRecv::processLoginData(), Ea::ChatRecv::processMVPEffect(), EAthena::PlayerRecv::processOnlineList(), ShopWindow::processRequest(), ChatInput::processVisible(), TmwAthena::ChatRecv::processWhisperContinue(), MapReader::readTileset(), Map::reduce(), TmwAthena::BuySellHandler::requestBuyList(), TmwAthena::BuySellHandler::requestSellList(), Being::reReadConfig(), Game::resetAdjustLevel(), GameModifiers::resetModifiers(), WindowManager::resizeVideo(), InputManager::retrieve(), MiniStatusWindow::saveBars(), WindowMenu::saveButtons(), ServerDialog::saveCustomServers(), ChatTab::saveToLogFile(), Window::saveWindowState(), TmwAthena::BuySellHandler::sendBuyRequest(), ShopWindow::sendMessage(), TmwAthena::BuySellHandler::sendSellRequest(), ServerDialog::ServerDialog(), LocalPlayer::setAfkMessage(), Desktop::setBestFittingWallpaper(), setLangEnv(), Minimap::setMap(), TradeWindow::setMoney(), Graphics::setOpenGLMode(), GameModifiers::setQuickDropCounter(), ChatLogger::setServerName(), ActorSprite::setStatusEffectBlock(), Setup_Input::Setup_Input(), Setup_Joystick::Setup_Joystick(), Setup_Perfomance::Setup_Perfomance(), Setup_Theme::Setup_Theme(), Setup_Video::Setup_Video(), ParticleEngine::setupEngine(), GraphicsManager::setVideoMode(), ShopWindow::ShopWindow(), PopupMenu::showDropPopup(), ChatWindow::showGMTab(), PopupMenu::showItemPopup(), Being::showName(), PopupMenu::showPopup(), EventsManager::shutdown(), SoundManager::shutdown(), TouchManager::shutdown(), Game::slowLogic(), Actions::splitWhisper(), Client::stateConnectServer1(), Client::stateSwitchLogin1(), InputManager::store(), ConfigManager::storeSafeParameters(), InventoryWindow::storeSortOrder(), SoundManager::testAudio(), Text::Text(), Theme::Theme(), ActorManager::updateBadges(), GraphicsManager::updateDebugLog(), updateEnv(), Gui::updateFonts(), Game::updateFrameRate(), SocialNavigationTab::updateList(), GraphicsManager::updateTextureCompressionFormat(), GraphicsManager::updateTextureFormat(), ItemShortcut::useItem(), Viewport::Viewport(), WindowMenu::WindowMenu(), ActorManager::~ActorManager(), AvatarListBox::~AvatarListBox(), Being::~Being(), ChatWindow::~ChatWindow(), EmulateGuildTab::~EmulateGuildTab(), Game::~Game(), Gui::~Gui(), GuildTab::~GuildTab(), LocalPlayer::~LocalPlayer(), Map::~Map(), MapLayer::~MapLayer(), Minimap::~Minimap(), NpcDialog::~NpcDialog(), PartyTab::~PartyTab(), Theme::~Theme(), UserPalette::~UserPalette(), Viewport::~Viewport(), WhoIsOnline::~WhoIsOnline(), and WindowMenu::~WindowMenu().

◆ features

Configuration features

◆ paths

Definition at line 55 of file configuration.cpp.

Referenced by anonymous_namespace{client.cpp}::LoginListener::action(), Being::addEffect(), SkillDialog::addSkill(), Game::changeMap(), EffectManager::EffectManager(), EquipmentWindow::fillBoxes(), Client::gameExec(), Client::gameInit(), Being::getDefaultEffectId(), SkillDialog::getDefaultSkillIcon(), ShadersManager::getGles2Program(), Being::getHitEffect(), StatusEffect::getIcon(), Item::getImage(), ShadersManager::getSimpleProgram(), Being::handleSkill(), Being::handleSkillCasting(), SpriteDef::includeSprite(), BeingInfo::init(), initDefaultWallpaperPaths(), Client::initFeatures(), LanguageDb::load(), SoundDB::load(), TextDb::load(), ModDB::load(), StatDb::load(), GroupDb::load(), ItemFieldDb::load(), DeadDB::load(), ItemOptionDb::load(), PETDB::load(), SkillUnitDb::load(), UnitsDb::load(), AvatarDB::load(), QuestDb::load(), CharDB::load(), HomunculusDB::load(), MercenaryDB::load(), MonsterDB::load(), NPCDB::load(), CommandsDB::load(), ElementalDb::load(), HorseDB::load(), ItemDB::load(), MapDB::load(), NetworkDb::load(), NpcDialogDB::load(), ColorDB::load(), EmoteDB::load(), SpriteDef::load(), StatusEffectDB::load(), Client::loadData(), loadDB(), MapReader::loadEmptyAtlas(), DidYouKnowWindow::loadFile(), HelpWindow::loadFile(), TextCommand::loadImage(), loadMusic(), PaletteDB::loadPalette(), loadReplaceLayer(), SkillDialog::loadSkillData(), SkillDialog::loadSkills(), EmoteDB::loadSpecialXmlFile(), HelpWindow::loadTags(), DeadDB::loadXmlFile(), GroupDb::loadXmlFile(), PETDB::loadXmlFile(), SkillUnitDb::loadXmlFile(), UnitsDb::loadXmlFile(), HorseDB::loadXmlFile(), HomunculusDB::loadXmlFile(), MercenaryDB::loadXmlFile(), MonsterDB::loadXmlFile(), ElementalDb::loadXmlFile(), EmoteDB::loadXmlFile(), ItemDB::loadXmlFile(), NPCDB::loadXmlFile(), StatusEffectDB::loadXmlFile(), NpcDialog::parseListItems(), SkillDialog::playCastingDstTileEffect(), SoundManager::playGuiSfx(), SkillDialog::playRemoveEffect(), SoundManager::playSfx(), SkillDialog::playUpdateEffect(), EquipmentWindow::prepareSlotNames(), MapDB::readAtlas(), BeingCommon::readObjectNodes(), Being::reReadConfig(), Being::setGender(), TmwAthena::setGm(), Being::setHairTempSprite(), SkillData::setIcon(), Item::setId(), ItemPopup::setItem(), Being::setLanguageId(), Minimap::setMap(), Being::setSpiritBalls(), Being::setSpriteCards(), Being::setSpriteColor(), Being::setSpriteColorId(), Being::setSpriteId(), Being::setTempSprite(), ActorSprite::setupSpriteDisplay(), CutInWindow::show(), Being::showAwayBadge(), Being::showGmBadge(), ChatWindow::showGMTab(), Being::showGuildBadge(), Being::showInactiveBadge(), Being::showNameBadge(), Being::showPartyBadge(), Being::showShopBadge(), Being::showTeamBadge(), and MapReader::updateMusic().

◆ serverConfig

Configuration serverConfig

Definition at line 52 of file configuration.cpp.

Referenced by SetupWindow::action(), QuitDialog::action(), anonymous_namespace{client.cpp}::LoginListener::action(), LocalPlayer::afkRespond(), Setup_Players::apply(), GameModifiers::changeAwayMode(), Actions::changeRelation(), Ea::ChatHandler::ChatHandler(), PacketLimiter::checkPackets(), Actions::doSit(), Client::gameClear(), SetupItem::getConfig(), GuildManager::init(), Client::initConfigListeners(), ConfigManager::initConfiguration(), ConfigManager::initServerConfig(), PacketLimiter::limitPackets(), ItemShortcut::load(), ShortcutBase::load(), SpellManager::load(), PlayerRelationsManager::load(), OutfitWindow::load(), PlayerInfo::loadData(), UpdaterWindow::loadDirMods(), LocalPlayer::loadHomes(), Setup_Mods::loadMods(), UpdaterWindow::loadMods(), ChatWindow::loadState(), LocalPlayer::LocalPlayer(), LoginDialog::LoginDialog(), Ea::LoginHandler::loginOrRegister(), MiniStatusWindow::MiniStatusWindow(), LocalPlayer::optionChanged(), LoginDialog::prepareUpdate(), ItemShortcut::save(), SpellManager::save(), ShortcutBase::save(), OutfitWindow::save(), EmoteShortcut::save(), LocalPlayer::saveHomes(), Setup_Mods::saveMods(), PlayerInfo::saveProtectedItems(), ChatWindow::saveState(), ChatWindow::saveTab(), LocalPlayer::setAfkMessage(), setDefaultOption(), ShopWindow::setShopName(), Game::slowLogic(), Client::stateConnectServer1(), Client::stateSwitchLogin1(), StatusWindow::StatusWindow(), PlayerRelationsManager::store(), ActorManager::storeAttackList(), UpdaterWindow::unloadMods(), Game::~Game(), and LocalPlayer::~LocalPlayer().

◆ unusedKeys

const std::string unusedKeys[]

Definition at line 57 of file configuration.cpp.

Referenced by Configuration::removeOldKeys().