The Battle for Wesnoth  1.15.12+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 <boost/algorithm/string.hpp>
Include dependency graph for filesystem_common.cpp:

Go to the source code of this file.




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


bool filesystem::is_legal_user_file_name (const std::string &name, bool allow_whitespace=true)
 Returns whether the given filename is a legal name for a user-created file. More...
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...


static lg::log_domain log_filesystem ("filesystem")

Macro Definition Documentation


#define ERR_FS   LOG_STREAM(err, log_filesystem)

Definition at line 29 of file filesystem_common.cpp.


#define LOG_FS   LOG_STREAM(info, log_filesystem)

Definition at line 28 of file filesystem_common.cpp.

Referenced by filesystem::data_tree_checksum().

Variable Documentation

◆ log_filesystem

lg::log_domain log_filesystem("filesystem")