The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Typedefs | Enumerations | Functions | Variables
filesystem Namespace Reference

Classes

class  atomic_commit
 Wrapper class that guarantees that file commit atomicity. More...
 
struct  binary_paths_manager
 The paths manager is responsible for recording the various paths that binary files may be located at. More...
 
struct  file_tree_checksum
 
struct  io_exception
 An exception object used when an IO error occurs. More...
 

Typedefs

using scoped_istream = std::unique_ptr< std::istream >
 
using scoped_ostream = std::unique_ptr< std::ostream >
 
typedef std::unique_ptr
< SDL_RWops, void(*)(SDL_RWops *)> 
rwops_ptr
 
typedef std::pair< Sint64,
std::ios_base::seekdir > 
offset_dir
 

Enumerations

enum  file_name_option { ENTIRE_FILE_PATH, FILE_NAME_ONLY }
 
enum  file_filter_option { NO_FILTER, SKIP_MEDIA_DIR, SKIP_PBL_FILES }
 
enum  file_reorder_option { DONT_REORDER, DO_REORDER }
 

Functions

rwops_ptr make_read_RWops (const std::string &path)
 
rwops_ptr make_write_RWops (const std::string &path)
 
void init ()
 Some tasks to run on startup. More...
 
void get_files_in_dir (const std::string &dir, std::vector< std::string > *files, std::vector< std::string > *dirs=nullptr, file_name_option mode=FILE_NAME_ONLY, file_filter_option filter=NO_FILTER, file_reorder_option reorder=DONT_REORDER, file_tree_checksum *checksum=nullptr)
 Populates 'files' with all the files and 'dirs' with all the directories in dir. More...
 
std::string get_dir (const std::string &dir)
 
std::string get_prefs_file ()
 
std::string get_credentials_file ()
 
std::string get_default_prefs_file ()
 
std::string get_save_index_file ()
 
std::string get_saves_dir ()
 
std::string get_intl_dir ()
 
std::string get_screenshot_dir ()
 
std::string get_addons_dir ()
 
std::string get_next_filename (const std::string &name, const std::string &extension)
 Get the next free filename using "name + number (3 digits) + extension" maximum 1000 files then start always giving 999. More...
 
void set_user_config_dir (const std::string &path)
 
void set_user_data_dir (std::string path)
 
std::string get_user_config_dir ()
 
std::string get_user_data_dir ()
 
std::string get_cache_dir ()
 
std::string get_cwd ()
 
std::string get_exe_dir ()
 
bool make_directory (const std::string &dirname)
 
bool delete_directory (const std::string &dirname, const bool keep_pbl=false)
 
bool delete_file (const std::string &filename)
 
bool looks_like_pbl (const std::string &file)
 
std::string read_file (const std::string &fname)
 Basic disk I/O - read file. More...
 
filesystem::scoped_istream istream_file (const std::string &fname, bool treat_failure_as_error=true)
 
filesystem::scoped_ostream ostream_file (const std::string &fname, bool create_directory=true)
 
void write_file (const std::string &fname, const std::string &data)
 Throws io_exception if an error occurs. More...
 
std::string read_map (const std::string &name)
 
bool create_directory_if_missing (const std::string &dirname)
 Creates a directory if it does not exist already. More...
 
bool create_directory_if_missing_recursive (const std::string &dirname)
 Creates a recursive directory tree if it does not exist already. More...
 
bool is_directory (const std::string &fname)
 Returns true if the given file is a directory. More...
 
bool file_exists (const std::string &name)
 Returns true if a file or directory with such name already exists. More...
 
time_t file_modified_time (const std::string &fname)
 Get the modification time of a file. More...
 
bool is_gzip_file (const std::string &filename)
 Returns true if the file ends with '.gz'. More...
 
bool is_bzip2_file (const std::string &filename)
 Returns true if the file ends with '.bz2'. More...
 
bool is_compressed_file (const std::string &filename)
 
const file_tree_checksumdata_tree_checksum (bool reset=false)
 Get the time at which the data/ tree was last modified at. More...
 
int file_size (const std::string &fname)
 Returns the size of a file, or -1 if the file doesn't exist. More...
 
int dir_size (const std::string &path)
 Returns the sum of the sizes of the files contained in a directory. More...
 
bool ends_with (const std::string &str, const std::string &suffix)
 
std::string base_name (const std::string &file, const bool remove_extension=false)
 Returns the base filename of a file, with directory name stripped. More...
 
std::string directory_name (const std::string &file)
 Returns the directory name of a file, with filename stripped. More...
 
std::string nearest_extant_parent (const std::string &file)
 Finds the nearest parent in existence for a file or directory. More...
 
std::string normalize_path (const std::string &path, bool normalize_separators=false, bool resolve_dot_entries=false)
 Returns the absolute path of a file. More...
 
bool is_root (const std::string &path)
 Returns whether the path is the root of the file hierarchy. More...
 
std::string root_name (const std::string &path)
 Returns the name of the root device if included in the given path. More...
 
bool is_relative (const std::string &path)
 Returns whether the path seems to be relative. More...
 
bool is_path_sep (char c)
 Returns whether c is a path separator. More...
 
char path_separator ()
 Returns the standard path separator for the current platform. More...
 
void clear_binary_paths_cache ()
 
const std::vector< std::string > & get_binary_paths (const std::string &type)
 Returns a vector with all possible paths to a given type of binary, e.g. More...
 
std::string get_binary_file_location (const std::string &type, const std::string &filename)
 Returns a complete path to the actual file of a given type or an empty string if the file isn't present. More...
 
std::string get_binary_dir_location (const std::string &type, const std::string &filename)
 Returns a complete path to the actual directory of a given type or an empty string if the directory isn't present. More...
 
std::string get_wml_location (const std::string &filename, const std::string &current_dir=std::string())
 Returns a complete path to the actual WML file or directory or an empty string if the file isn't present. More...
 
std::string get_short_wml_path (const std::string &filename)
 Returns a short path to filename, skipping the (user) data directory. More...
 
std::string get_independent_image_path (const std::string &filename)
 Returns an image path to filename for binary path-independent use in saved games. More...
 
std::string get_program_invocation (const std::string &program_name)
 Returns the appropriate invocation for a Wesnoth-related binary, assuming that it is located in the same directory as the running wesnoth binary. More...
 
static void push_if_exists (std::vector< std::string > *vec, const path &file, bool full)
 
static bool error_except_not_found (const error_code &ec)
 
static bool is_directory_internal (const path &fpath)
 
static bool file_exists (const path &fpath)
 
static path get_dir (const path &dirpath)
 
static bool create_directory_if_missing (const path &dirpath)
 
static bool create_directory_if_missing_recursive (const path &dirpath)
 
static const std::string & get_version_path_suffix ()
 
static void setup_user_data_dir ()
 
static void set_user_config_path (path newconfig)
 
static const path & get_user_data_path ()
 
static void init_binary_paths ()
 
static bool is_legal_file (const std::string &filename)
 
static path subtract_path (const path &full, const path &prefix)
 
static void get_file_tree_checksum_internal (const std::string &path, file_tree_checksum &res)
 
static Sint64 ifs_size (struct SDL_RWops *context)
 
static Sint64 ofs_size (struct SDL_RWops *context)
 
static Sint64 SDLCALL ifs_seek (struct SDL_RWops *context, Sint64 offset, int whence)
 
static Sint64 SDLCALL ofs_seek (struct SDL_RWops *context, Sint64 offset, int whence)
 
static size_t SDLCALL ifs_read (struct SDL_RWops *context, void *ptr, size_t size, size_t maxnum)
 
static size_t SDLCALL ofs_read (struct SDL_RWops *context, void *ptr, size_t size, size_t maxnum)
 
static size_t SDLCALL ifs_write (struct SDL_RWops *context, const void *ptr, size_t size, size_t num)
 
static size_t SDLCALL ofs_write (struct SDL_RWops *context, const void *ptr, size_t size, size_t num)
 
static int SDLCALL ifs_close (struct SDL_RWops *context)
 
static int SDLCALL ofs_close (struct SDL_RWops *context)
 
static offset_dir translate_seekdir (Sint64 offset, int whence)
 

Variables

static path user_data_dir
 
static path user_config_dir
 
static path cache_dir
 
static const Uint32 read_type = 7
 
static const Uint32 write_type = 8
 

Typedef Documentation

typedef std::pair<Sint64, std::ios_base::seekdir> filesystem::offset_dir

Definition at line 113 of file filesystem_sdl.cpp.

typedef std::unique_ptr<SDL_RWops, void(*)(SDL_RWops*)> filesystem::rwops_ptr

Definition at line 40 of file filesystem.hpp.

using filesystem::scoped_istream = typedef std::unique_ptr<std::istream>

Definition at line 37 of file filesystem.hpp.

using filesystem::scoped_ostream = typedef std::unique_ptr<std::ostream>

Definition at line 38 of file filesystem.hpp.

Enumeration Type Documentation

Enumerator
NO_FILTER 
SKIP_MEDIA_DIR 
SKIP_PBL_FILES 

Definition at line 54 of file filesystem.hpp.

Enumerator
ENTIRE_FILE_PATH 
FILE_NAME_ONLY 

Definition at line 53 of file filesystem.hpp.

Enumerator
DONT_REORDER 
DO_REORDER 

Definition at line 55 of file filesystem.hpp.

Function Documentation

std::string filesystem::base_name ( const std::string &  file,
const bool  remove_extension = false 
)
void filesystem::clear_binary_paths_cache ( )
bool filesystem::create_directory_if_missing ( const std::string &  dirname)

Creates a directory if it does not exist already.

Parameters
dirnamePath to directory. All parents should exist.
Returns
True if the directory exists or could be successfully created; false otherwise.

Definition at line 877 of file filesystem_boost.cpp.

References game_config::path.

Referenced by create_directory_if_missing_recursive(), set_user_data_dir(), and setup_user_data_dir().

static bool filesystem::create_directory_if_missing ( const path &  dirpath)
static
bool filesystem::create_directory_if_missing_recursive ( const std::string &  dirname)

Creates a recursive directory tree if it does not exist already.

Parameters
dirnameFull path of target directory. Non existing parents will be created
Returns
True if the directory exists or could be successfully created; false otherwise.

Definition at line 881 of file filesystem_boost.cpp.

References game_config::path.

Referenced by create_directory_if_missing_recursive(), get_cache_dir(), preprocess_resource(), set_user_config_path(), and setup_user_data_dir().

static bool filesystem::create_directory_if_missing_recursive ( const path &  dirpath)
static
const file_tree_checksum & filesystem::data_tree_checksum ( bool  reset = false)
bool filesystem::delete_directory ( const std::string &  dirname,
const bool  keep_pbl = false 
)
bool filesystem::delete_file ( const std::string &  filename)
int filesystem::dir_size ( const std::string &  path)

Returns the sum of the sizes of the files contained in a directory.

Definition at line 929 of file filesystem_boost.cpp.

References file_size(), i, LOG_FS, p, and game_config::path.

Referenced by gui2::dialogs::game_cache_options::update_cache_size_display().

std::string filesystem::directory_name ( const std::string &  file)
bool filesystem::ends_with ( const std::string &  str,
const std::string &  suffix 
)
static bool filesystem::error_except_not_found ( const error_code &  ec)
inlinestatic
bool filesystem::file_exists ( const std::string &  name)
static bool filesystem::file_exists ( const path &  fpath)
static

Definition at line 260 of file filesystem_boost.cpp.

References ERR_FS, error_except_not_found(), and image::exists().

time_t filesystem::file_modified_time ( const std::string &  fname)

Get the modification time of a file.

Definition at line 896 of file filesystem_boost.cpp.

References LOG_FS, and game_config::path.

Referenced by savegame::create_save_info::operator()(), and savegame::save_index_class::rebuild().

int filesystem::file_size ( const std::string &  fname)
std::string filesystem::get_addons_dir ( )
std::string filesystem::get_binary_dir_location ( const std::string &  type,
const std::string &  filename 
)

Returns a complete path to the actual directory of a given type or an empty string if the directory isn't present.

Definition at line 1238 of file filesystem_boost.cpp.

References DBG_FS, get_binary_paths(), is_directory_internal(), is_legal_file(), and game_config::path.

Referenced by BOOST_AUTO_TEST_CASE(), and init_textdomains().

std::string filesystem::get_binary_file_location ( const std::string &  type,
const std::string &  filename 
)
const std::vector< std::string > & filesystem::get_binary_paths ( const std::string &  type)

Returns a vector with all possible paths to a given type of binary, e.g.

'images', 'sounds', etc,

Definition at line 1169 of file filesystem_boost.cpp.

References dummy, ERR_FS, get_user_data_dir(), init_binary_paths(), and game_config::path.

Referenced by get_binary_dir_location(), get_binary_file_location(), font::manager::manager(), image::precache_file_existence(), and font::manager::~manager().

std::string filesystem::get_cache_dir ( )
std::string filesystem::get_credentials_file ( )
std::string filesystem::get_cwd ( )
std::string filesystem::get_default_prefs_file ( )
std::string filesystem::get_dir ( const std::string &  dir)
static path filesystem::get_dir ( const path &  dirpath)
static

Definition at line 269 of file filesystem_boost.cpp.

References ERR_FS, and is_directory_internal().

std::string filesystem::get_exe_dir ( )
static void filesystem::get_file_tree_checksum_internal ( const std::string &  path,
file_tree_checksum &  res 
)
static

Definition at line 143 of file filesystem_common.cpp.

References DONT_REORDER, ENTIRE_FILE_PATH, get_files_in_dir(), and SKIP_MEDIA_DIR.

Referenced by data_tree_checksum().

void filesystem::get_files_in_dir ( const std::string &  dir,
std::vector< std::string > *  files,
std::vector< std::string > *  dirs = nullptr,
file_name_option  mode = FILE_NAME_ONLY,
file_filter_option  filter = NO_FILTER,
file_reorder_option  reorder = DONT_REORDER,
file_tree_checksum *  checksum = nullptr 
)
std::string filesystem::get_independent_image_path ( const std::string &  filename)

Returns an image path to filename for binary path-independent use in saved games.

Example: units/konrad-fighter.png -> data/campaigns/Heir_To_The_Throne/images/units/konrad-fighter.png

Definition at line 1326 of file filesystem_boost.cpp.

References get_binary_file_location(), get_user_data_path(), preferences::editor::TransitionUpdateMode::partial, game_config::path, and subtract_path().

Referenced by BOOST_AUTO_TEST_CASE(), gui2::dialogs::game_load::display_savegame(), and savegame::extract_summary_from_config().

std::string filesystem::get_intl_dir ( )
std::string filesystem::get_next_filename ( const std::string &  name,
const std::string &  extension 
)

Get the next free filename using "name + number (3 digits) + extension" maximum 1000 files then start always giving 999.

Definition at line 460 of file filesystem_boost.cpp.

References file_exists(), name(), and right.

std::string filesystem::get_prefs_file ( )
std::string filesystem::get_program_invocation ( const std::string &  program_name)

Returns the appropriate invocation for a Wesnoth-related binary, assuming that it is located in the same directory as the running wesnoth binary.

This is just a string-transformation based on argv[0], so the returned program is not guaranteed to actually exist. '-debug' variants are handled correctly.

Definition at line 1344 of file filesystem_boost.cpp.

References game_config::path, and game_config::wesnoth_program_dir.

Referenced by game_launcher::start_wesnothd().

std::string filesystem::get_save_index_file ( )
std::string filesystem::get_saves_dir ( )
std::string filesystem::get_screenshot_dir ( )

Definition at line 88 of file filesystem_common.cpp.

References get_dir(), and get_user_data_dir().

std::string filesystem::get_short_wml_path ( const std::string &  filename)

Returns a short path to filename, skipping the (user) data directory.

Definition at line 1311 of file filesystem_boost.cpp.

References get_user_data_path(), preferences::editor::TransitionUpdateMode::partial, game_config::path, and subtract_path().

Referenced by preprocessor_file::init(), and editor::map_context::map_context().

std::string filesystem::get_user_config_dir ( )
std::string filesystem::get_user_data_dir ( )
static const path& filesystem::get_user_data_path ( )
static
static const std::string& filesystem::get_version_path_suffix ( )
static
std::string filesystem::get_wml_location ( const std::string &  filename,
const std::string &  current_dir = std::string() 
)
static int SDLCALL filesystem::ifs_close ( struct SDL_RWops *  context)
static

Definition at line 197 of file filesystem_sdl.cpp.

Referenced by make_read_RWops().

static size_t SDLCALL filesystem::ifs_read ( struct SDL_RWops *  context,
void *  ptr,
size_t  size,
size_t  maxnum 
)
static

Definition at line 163 of file filesystem_sdl.cpp.

References utf8::size().

Referenced by make_read_RWops().

static Sint64 SDLCALL filesystem::ifs_seek ( struct SDL_RWops *  context,
Sint64  offset,
int  whence 
)
static

Definition at line 128 of file filesystem_sdl.cpp.

References translate_seekdir().

Referenced by make_read_RWops().

static Sint64 filesystem::ifs_size ( struct SDL_RWops *  context)
static

Definition at line 88 of file filesystem_sdl.cpp.

Referenced by make_read_RWops().

static size_t SDLCALL filesystem::ifs_write ( struct SDL_RWops *  context,
const void *  ptr,
size_t  size,
size_t  num 
)
static

Definition at line 181 of file filesystem_sdl.cpp.

Referenced by make_read_RWops().

void filesystem::init ( )

Some tasks to run on startup.

Definition at line 221 of file filesystem_boost.cpp.

Referenced by main().

static void filesystem::init_binary_paths ( )
static
bool filesystem::is_bzip2_file ( const std::string &  filename)

Returns true if the file ends with '.bz2'.

Definition at line 911 of file filesystem_boost.cpp.

References game_config::path.

Referenced by BOOST_AUTO_TEST_CASE(), is_compressed_file(), process_command_args(), and savegame::read_save_file().

bool filesystem::is_compressed_file ( const std::string &  filename)
inline

Definition at line 154 of file filesystem.hpp.

References is_bzip2_file(), and is_gzip_file().

Referenced by BOOST_AUTO_TEST_CASE(), and savegame::savegame::check_filename().

bool filesystem::is_directory ( const std::string &  fname)
static bool filesystem::is_directory_internal ( const path &  fpath)
static
bool filesystem::is_gzip_file ( const std::string &  filename)

Returns true if the file ends with '.gz'.

Definition at line 906 of file filesystem_boost.cpp.

References game_config::path.

Referenced by BOOST_AUTO_TEST_CASE(), is_compressed_file(), process_command_args(), and savegame::read_save_file().

static bool filesystem::is_legal_file ( const std::string &  filename)
static
bool filesystem::is_path_sep ( char  c)

Returns whether c is a path separator.

Note
/ is always a path separator. Additionally, on Windows \ is a path separator as well.

Definition at line 985 of file filesystem_boost.cpp.

References game_config::path, and s.

bool filesystem::is_relative ( const std::string &  path)

Returns whether the path seems to be relative.

Definition at line 1035 of file filesystem_boost.cpp.

References game_config::path.

Referenced by BOOST_AUTO_TEST_CASE(), get_files_in_dir(), and gui2::dialogs::file_dialog::register_new_selection().

bool filesystem::is_root ( const std::string &  path)

Returns whether the path is the root of the file hierarchy.

Note
This function is unreliable for paths that do not exist – it will always return false for those.

Definition at line 997 of file filesystem_boost.cpp.

References p, and game_config::path.

Referenced by BOOST_AUTO_TEST_CASE(), gui2::dialogs::file_dialog::get_filelist_selection(), nearest_extant_parent(), gui2::dialogs::file_dialog::refresh_fileview(), and gui2::dialogs::file_dialog::register_new_selection().

filesystem::scoped_istream filesystem::istream_file ( const std::string &  fname,
bool  treat_failure_as_error = true 
)
bool filesystem::looks_like_pbl ( const std::string &  file)
bool filesystem::make_directory ( const std::string &  dirname)
rwops_ptr filesystem::make_read_RWops ( const std::string &  path)
rwops_ptr filesystem::make_write_RWops ( const std::string &  path)
std::string filesystem::nearest_extant_parent ( const std::string &  file)

Finds the nearest parent in existence for a file or directory.

Note
The file's own existence is not checked.
Returns
An absolute path to the closest parent of the given path, or an empty string if none could be found. While on POSIX platforms this cannot happen (unless the original path was already empty), on Windows it might be the case that the original path refers to a drive letter or network share that does not exist.

Definition at line 965 of file filesystem_boost.cpp.

References is_root(), p, and game_config::path.

Referenced by BOOST_AUTO_TEST_CASE(), and gui2::dialogs::file_dialog::set_path().

std::string filesystem::normalize_path ( const std::string &  path,
bool  normalize_separators = false,
bool  resolve_dot_entries = false 
)

Returns the absolute path of a file.

Parameters
pathOriginal path.
normalize_separatorsWhether to substitute path separators with the platform's preferred format.
resolve_dot_entriesWhether to resolve . and .. directory entries. This requires path to refer to a valid existing object.
Returns
An absolute path – that is, a path that is independent of the current working directory for the process. If resolve_dot_entries is set to true, the returned path has . and .. components resolved; however, if resolution fails because a component does not exist, an empty string is returned instead.

Definition at line 1040 of file filesystem_boost.cpp.

References p, and game_config::path.

Referenced by game_launcher::goto_editor(), main(), gui2::dialogs::file_dialog::path(), process_command_args(), gui2::dialogs::file_dialog::register_new_selection(), gui2::dialogs::file_dialog::set_path(), set_user_data_dir(), and gui2::dialogs::file_dialog::sync_bookmarks_bar().

static int SDLCALL filesystem::ofs_close ( struct SDL_RWops *  context)
static

Definition at line 205 of file filesystem_sdl.cpp.

Referenced by make_write_RWops().

static size_t SDLCALL filesystem::ofs_read ( struct SDL_RWops *  context,
void *  ptr,
size_t  size,
size_t  maxnum 
)
static

Definition at line 176 of file filesystem_sdl.cpp.

Referenced by make_write_RWops().

static Sint64 SDLCALL filesystem::ofs_seek ( struct SDL_RWops *  context,
Sint64  offset,
int  whence 
)
static

Definition at line 145 of file filesystem_sdl.cpp.

References translate_seekdir().

Referenced by make_write_RWops().

static Sint64 filesystem::ofs_size ( struct SDL_RWops *  context)
static

Definition at line 100 of file filesystem_sdl.cpp.

Referenced by make_write_RWops().

static size_t SDLCALL filesystem::ofs_write ( struct SDL_RWops *  context,
const void *  ptr,
size_t  size,
size_t  num 
)
static

Definition at line 185 of file filesystem_sdl.cpp.

References utf8::size().

Referenced by make_write_RWops().

filesystem::scoped_ostream filesystem::ostream_file ( const std::string &  fname,
bool  create_directory = true 
)
char filesystem::path_separator ( )

Returns the standard path separator for the current platform.

Definition at line 992 of file filesystem_boost.cpp.

static void filesystem::push_if_exists ( std::vector< std::string > *  vec,
const path &  file,
bool  full 
)
static

Definition at line 231 of file filesystem_boost.cpp.

Referenced by get_files_in_dir().

std::string filesystem::read_file ( const std::string &  fname)
std::string filesystem::read_map ( const std::string &  name)
std::string filesystem::root_name ( const std::string &  path)

Returns the name of the root device if included in the given path.

This only properly makes sense on Windows with paths containing a drive letter or UNC at the start – otherwise, it will return the empty string. To ensure that a suitable root name can be found you might want to use normalize_path() first with resolve_dot_entries set to true.

Definition at line 1030 of file filesystem_boost.cpp.

References game_config::path.

Referenced by gui2::dialogs::file_dialog::register_new_selection().

void filesystem::set_user_config_dir ( const std::string &  path)

Definition at line 630 of file filesystem_boost.cpp.

References set_user_config_path().

Referenced by process_command_args().

static void filesystem::set_user_config_path ( path  newconfig)
static
void filesystem::set_user_data_dir ( std::string  path)
static void filesystem::setup_user_data_dir ( )
static
static path filesystem::subtract_path ( const path &  full,
const path &  prefix 
)
static

Definition at line 1292 of file filesystem_boost.cpp.

References game_config::path.

Referenced by get_independent_image_path(), and get_short_wml_path().

static offset_dir filesystem::translate_seekdir ( Sint64  offset,
int  whence 
)
static

Definition at line 115 of file filesystem_sdl.cpp.

Referenced by ifs_seek(), and ofs_seek().

void filesystem::write_file ( const std::string &  fname,
const std::string &  data 
)

Variable Documentation

path filesystem::cache_dir
static

Definition at line 479 of file filesystem_boost.cpp.

const Uint32 filesystem::read_type = 7
static

Definition at line 28 of file filesystem_sdl.cpp.

Referenced by make_read_RWops().

path filesystem::user_config_dir
static

Definition at line 479 of file filesystem_boost.cpp.

path filesystem::user_data_dir
static

Definition at line 479 of file filesystem_boost.cpp.

Referenced by get_user_data_path().

const Uint32 filesystem::write_type = 8
static

Definition at line 29 of file filesystem_sdl.cpp.

Referenced by make_write_RWops().