The Battle for Wesnoth  1.19.1+dev
Namespaces | Macros | Functions | Variables
paths.cpp File Reference
#include "desktop/paths.hpp"
#include "filesystem.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "preferences/preferences.hpp"
#include "serialization/unicode.hpp"
#include "utils/general.hpp"
#include <boost/filesystem.hpp>
#include <pwd.h>
Include dependency graph for paths.cpp:

Go to the source code of this file.




#define GETTEXT_DOMAIN   "wesnoth-lib"
#define ERR_DU   LOG_STREAM(err, log_desktop)
#define LOG_DU   LOG_STREAM(info, log_desktop)
#define DBG_DU   LOG_STREAM(debug, log_desktop)


std::string desktop::user_profile_dir ()
 Returns the path to the user profile dir (e.g. More...
std::ostream & desktop::operator<< (std::ostream &os, const path_info &pinf)
std::vector< path_info > desktop::game_paths (std::set< GAME_PATH_TYPES > paths)
 Returns a list of game-related paths. More...
std::vector< path_info > desktop::system_paths (std::set< SYSTEM_PATH_TYPES > paths)
 Returns a list of system-defined paths. More...
unsigned desktop::add_user_bookmark (const std::string &label, const std::string &path)
void desktop::remove_user_bookmark (unsigned index)
std::vector< bookmark_info > desktop::user_bookmarks ()


static lg::log_domain log_desktop ("desktop")

Macro Definition Documentation


#define DBG_DU   LOG_STREAM(debug, log_desktop)

Definition at line 52 of file paths.cpp.


#define ERR_DU   LOG_STREAM(err, log_desktop)

Definition at line 50 of file paths.cpp.


#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 16 of file paths.cpp.


#define LOG_DU   LOG_STREAM(info, log_desktop)

Definition at line 51 of file paths.cpp.

Variable Documentation

◆ log_desktop

lg::log_domain log_desktop("desktop") ( "desktop"  )