ManaPlus
|
#include <dirs.h>
Static Public Member Functions | |
static void | initUsersDir () |
static void | updateDataPath () |
static void | extractDataDir () |
static void | mountDataDir () |
static void | initRootDir () |
static void | initHomeDir () |
static void | initLocalDataDir () |
static void | initTempDir () |
static void | initConfigDir () |
static void | initUpdatesDir () |
static void | initScreenshotDir () |
|
static |
Definition at line 179 of file dirs.cpp.
References Append_false, VirtFs::mountZip2(), and pathJoin().
Referenced by Client::gameInit().
|
static |
Definition at line 396 of file dirs.cpp.
References _, branding, Options::configDir, Settings::configDir, Logger::error(), VirtFs::getUserDir(), ConfigurationObject::getValue(), Settings::localDataDir, Logger::log(), logger, mkdir_r(), Settings::options, pathJoin(), settings, and strprintf().
Referenced by initHomeDir().
|
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 330 of file dirs.cpp.
References initConfigDir(), initLocalDataDir(), and initTempDir().
Referenced by Client::gameInit().
|
static |
Definition at line 337 of file dirs.cpp.
References _, branding, Logger::error(), VirtFs::getUserDir(), ConfigurationObject::getValue(), PlayerInfo::init(), Options::localDataDir, Settings::localDataDir, logger, mkdir_r(), Settings::options, pathJoin(), settings, and strprintf().
Referenced by initHomeDir().
|
static |
Definition at line 266 of file dirs.cpp.
References branding, Options::brandingPath, Options::configDir, VirtFs::getBaseDir(), ConfigurationObject::getValue(), Configuration::init(), Options::localDataDir, Logger::log(), logger, Settings::options, Settings::rootDir, Options::screenshotDir, setBrandingDefaults(), settings, SkipError_false, and UseVirtFs_false.
Referenced by Client::gameInit().
|
static |
Definition at line 544 of file dirs.cpp.
References _, branding, config, decodeBase64String(), encodeBase64String(), Configuration::getBoolValue(), getPicturesDir(), Configuration::getStringValue(), ConfigurationObject::getValue(), Logger::log(), logger, mkdir_r(), Settings::options, pathJoin(), Options::screenshotDir, Settings::screenshotDir, settings, Configuration::setValue(), and strprintf().
Referenced by Client::gameInit().
|
static |
Definition at line 383 of file dirs.cpp.
References _, Logger::error(), Settings::localDataDir, logger, mkdir_r(), pathJoin(), settings, strprintf(), and Settings::tempDir.
Referenced by initHomeDir().
|
static |
Parse the update host and determine the updates directory Then verify that the directory exists (creating if needed).
Definition at line 451 of file dirs.cpp.
References _, checkPath(), client, config, State::ERROR, errorMessage, Configuration::getStringValue(), VirtFs::isDirectory(), Settings::localDataDir, Logger::log(), Logger::log1(), logger, VirtFs::mkdir(), pathJoin(), replaceAll(), Settings::serverName, Client::setState(), settings, strprintf(), Settings::updateHost, and Settings::updatesDir.
|
static |
Definition at line 599 of file dirs.cpp.
References _, Logger::error(), logger, mkdir_r(), Settings::npcsDir, Settings::serverConfigDir, settings, strprintf(), Settings::usersDir, and Settings::usersIdDir.
Referenced by Client::stateConnectServer1().
|
static |
Definition at line 198 of file dirs.cpp.
References Append_false, Options::brandingPath, CAST_S32, VirtFs::mountDir(), VirtFs::mountDirSilent(), VirtFs::mountZip(), VirtFs::mountZip2(), Settings::options, pathJoin(), PKG_DATADIR, setPackageDir(), and settings.
Referenced by Client::gameInit().
|
static |
Definition at line 161 of file dirs.cpp.
References branding, Options::dataPath, Configuration::getDirectory(), Configuration::getStringValue(), isRealPath(), Settings::options, pathJoin(), settings, and Options::skipUpdate.
Referenced by Client::gameInit().