The Battle for Wesnoth  1.15.1+dev
Namespaces | Macros | Functions | Variables
filesystem_common.cpp File Reference
#include <fstream>
#include "filesystem.hpp"
#include "wesconfig.h"
#include "config.hpp"
#include "game_config.hpp"
#include "log.hpp"
#include "serialization/string_utils.hpp"
#include "serialization/unicode.hpp"
Include dependency graph for filesystem_common.cpp:

Go to the source code of this file.

Namespaces

 filesystem
 

Macros

#define LOG_FS   LOG_STREAM(info, log_filesystem)
 
#define ERR_FS   LOG_STREAM(err, log_filesystem)
 

Functions

std::string filesystem::get_prefs_file ()
 
std::string filesystem::get_credentials_file ()
 
std::string filesystem::get_default_prefs_file ()
 
std::string filesystem::get_save_index_file ()
 
std::string filesystem::get_saves_dir ()
 
std::string filesystem::get_addons_dir ()
 
std::string filesystem::get_intl_dir ()
 
std::string filesystem::get_screenshot_dir ()
 
bool filesystem::looks_like_pbl (const std::string &file)
 
bool filesystem::ends_with (const std::string &str, const std::string &suffix)
 
std::string filesystem::read_map (const std::string &name)
 
static void filesystem::get_file_tree_checksum_internal (const std::string &path, file_tree_checksum &res)
 
const file_tree_checksum & filesystem::data_tree_checksum (bool reset=false)
 Get the time at which the data/ tree was last modified at. More...
 

Variables

static lg::log_domain log_filesystem ("filesystem")
 

Macro Definition Documentation

◆ ERR_FS

#define ERR_FS   LOG_STREAM(err, log_filesystem)

Definition at line 27 of file filesystem_common.cpp.

◆ LOG_FS

#define LOG_FS   LOG_STREAM(info, log_filesystem)

Definition at line 26 of file filesystem_common.cpp.

Referenced by filesystem::data_tree_checksum().

Variable Documentation

◆ log_filesystem

lg::log_domain log_filesystem("filesystem")
static