ManaPlus
|
#include <configmanager.h>
Static Public Member Functions | |
static void | initConfiguration () |
static void | initServerConfig (const std::string &serverName) |
static void | storeSafeParameters () |
static void | backupConfig (const std::string &name) |
static void | checkConfigVersion () |
Definition at line 31 of file configmanager.h.
|
static |
Definition at line 179 of file configmanager.cpp.
References Settings::configDir, Files::copyFile(), Files::existsLocal(), Files::loadTextFileLocal(), Logger::log(), logger, pathJoin(), VirtFs::remove(), Files::renameFile(), Logger::safeError(), settings, and Catch::toString().
Referenced by Client::gameInit().
|
static |
Definition at line 371 of file configmanager.cpp.
References CAST_S32, config, ConfigurationObject::deleteKey(), Configuration::getIntValue(), BeingSpeech::NO_NAME_IN_BUBBLE, Configuration::setValue(), BeingSpeech::TEXT_OVERHEAD, and unassignKey.
Referenced by Client::gameInit().
|
static |
Definition at line 99 of file configmanager.cpp.
References branding, CAST_S32, checkPath(), config, Settings::configDir, ConfigurationObject::getValue(), Configuration::init(), Logger::log(), Logger::log1(), logger, Settings::options, RENDER_GLES_OPENGL, RENDER_NORMAL_OPENGL, RENDER_SAFE_OPENGL, RENDER_SOFTWARE, reportAlways, serverConfig, setConfigDefaults(), settings, Configuration::setValue(), SkipError_false, Options::test, and UseVirtFs_false.
Referenced by Client::gameInit().
|
static |
Initializes the home directory. On UNIX and FreeBSD, ~/.mana is used. On Windows and other systems we use the current working directory.
Definition at line 56 of file configmanager.cpp.
References _, Settings::configDir, Logger::error(), Configuration::init(), Client::isTmw(), Logger::log(), logger, mkdir_r(), pathJoin(), reportAlways, serverConfig, Settings::serverConfigDir, setConfigDefaults(), setDefaultOption(), settings, SkipError_false, strprintf(), and UseVirtFs_false.
Referenced by Client::stateConnectServer1().
|
static |
Definition at line 246 of file configmanager.cpp.
References CAST_S32, config, Configuration::getBoolValue(), Configuration::getIntValue(), Configuration::getStringValue(), intToRenderType(), isSafeMode, Logger::log1(), logger, Settings::options, RENDER_NORMAL_OPENGL, RENDER_SOFTWARE, Options::safeMode, settings, Configuration::setValue(), and Configuration::write().
Referenced by Client::gameInit().