The Battle for Wesnoth  1.19.0-dev
Namespaces | Macros | Functions | Variables
filesystem_common.cpp File Reference
#include "filesystem.hpp"
#include "wesconfig.h"
#include "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.

Namespaces

 filesystem
 

Macros

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

Functions

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_data_dir ()
 
std::string filesystem::get_addons_dir ()
 
std::string filesystem::get_wml_persist_dir ()
 
std::string filesystem::get_legacy_editor_dir ()
 
std::string filesystem::get_current_editor_dir (const std::string &addon_id)
 
std::string filesystem::get_core_images_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)
 
std::string filesystem::read_scenario (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.

Variable Documentation

◆ log_filesystem

lg::log_domain log_filesystem("filesystem") ( "filesystem"  )
static