The Battle for Wesnoth  1.19.5+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 "utils/general.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::autodetect_game_data_dir (std::string exe_dir)
 Try to autodetect the location of the game data dir. More...
 
std::string filesystem::get_synced_prefs_file ()
 location of preferences file containing preferences that are synced between computers note that wesnoth does not provide the syncing functionality itself More...
 
std::string filesystem::get_unsynced_prefs_file ()
 location of preferences file containing preferences that aren't synced between computers More...
 
std::string filesystem::get_credentials_file ()
 
std::string filesystem::get_default_prefs_file ()
 
std::string filesystem::get_save_index_file ()
 
std::string filesystem::get_lua_history_file ()
 
std::string filesystem::get_sync_dir ()
 parent directory for everything that should be synced between systems. More...
 
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)
 
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 28 of file filesystem_common.cpp.

◆ LOG_FS

#define LOG_FS   LOG_STREAM(info, log_filesystem)

Definition at line 27 of file filesystem_common.cpp.

Variable Documentation

◆ log_filesystem

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