Classes | |
| class | autosave_savegame |
| Class for autosaves. More... | |
| class | create_save_info |
| class | filename_filter |
| class | ingame_savegame |
| Class for "normal" midgame saves. More... | |
| class | loadgame |
| The class for loading a savefile. More... | |
| class | oos_savegame |
| class | replay_savegame |
| Class for replay saves (either manually or automatically). More... | |
| class | save_index_class |
| class | save_info |
| Filename and modification date for a file list. More... | |
| struct | save_info_less_time |
| A structure for comparing to save_info objects based on their modified time. More... | |
| class | savegame |
| The base class for all savegame stuff. More... | |
| class | scenariostart_savegame |
| Class for start-of-scenario saves. More... | |
Functions | |
| void | extract_summary_from_config (config &, config &) |
| std::vector< save_info > | get_saves_list (const std::string *dir, const std::string *filter) |
| Get a list of available saves. More... | |
| static std::istream * | find_save_file (const std::string &name, const std::string &alt_name, const std::vector< std::string > &suffixes) |
| void | read_save_file (const std::string &name, config &cfg, std::string *error_log) |
| Read the complete config information out of a savefile. More... | |
| void | remove_old_auto_saves (const int autosavemax, const int infinite_auto_saves) |
| Remove autosaves that are no longer needed (according to the autosave policy in the preferences). More... | |
| void | delete_game (const std::string &name) |
| Delete a savegame. More... | |
| bool | save_game_exists (const std::string &name, compression::format compressed) |
| Returns true if there is already a savegame with that name. More... | |
| void | clean_saves (const std::string &label) |
| Delete all autosaves of a certain scenario. More... | |
| static void | convert_old_saves_1_11_0 (config &cfg) |
| static void | convert_old_saves_1_13_0 (config &cfg) |
| static void | convert_old_saves_1_13_1 (config &cfg) |
| void | convert_old_saves (config &cfg) |
| converts saves from older versions of wesnoth More... | |
Variables | |
| save_index_class | save_index_manager |
| void savegame::savegame::clean_saves | ( | const std::string & | label | ) |
Delete all autosaves of a certain scenario.
Definition at line 71 of file savegame.cpp.
References _(), delete_game(), get_saves_list(), i, and LOG_SAVE.
Referenced by campaign_controller::play_game(), and game_launcher::unit_test().
converts saves from older versions of wesnoth
Definition at line 840 of file savegame.cpp.
References convert_old_saves_1_11_0(), convert_old_saves_1_13_0(), convert_old_saves_1_13_1(), and LOG_RG.
Referenced by savegame::loadgame::load_game().
Definition at line 660 of file savegame.cpp.
References config::add_child(), config::child(), config::child_or_empty(), config::child_range(), config::clear_children(), config::empty(), config::has_child(), and LOG_RG.
Referenced by convert_old_saves().
Definition at line 755 of file savegame.cpp.
References config::add_child(), config::child(), config::child_or_empty(), config::clear_children(), config::empty(), and config::has_child().
Referenced by convert_old_saves().
Definition at line 803 of file savegame.cpp.
References config::child(), config::child_range(), preferences::modifications(), config::remove_attribute(), and utils::split().
Referenced by convert_old_saves().
| void savegame::delete_game | ( | const std::string & | name | ) |
Delete a savegame.
Definition at line 307 of file save_index.cpp.
References filesystem::delete_file(), filesystem::get_saves_dir(), savegame::save_index_class::remove(), and replace_space2underbar().
Referenced by clean_saves(), gui2::tgame_load::delete_button_callback(), and remove_old_auto_saves().
Definition at line 334 of file save_index.cpp.
References config::child(), config::child_range(), config::empty(), ERR_SAVE, config::find_child(), filesystem::get_independent_image_path(), config::has_attribute(), and config::has_child().
Referenced by savegame::save_index_class::rebuild().
|
static |
Definition at line 234 of file save_index.cpp.
References filesystem::get_saves_dir(), filesystem::istream_file(), and LOG_SAVE.
Referenced by read_save_file().
| std::vector< save_info > savegame::get_saves_list | ( | const std::string * | dir, |
| const std::string * | filter | ||
| ) |
Get a list of available saves.
Definition at line 161 of file save_index.cpp.
References savegame::create_save_info::dir, filesystem::get_files_in_dir(), replace_space2underbar(), and sort().
Referenced by clean_saves(), gui2::tgame_load::pre_show(), remove_old_auto_saves(), and savegame::loadgame::show_dialog().
| void savegame::savegame::read_save_file | ( | const std::string & | name, |
| config & | cfg, | ||
| std::string * | error_log | ||
| ) |
Read the complete config information out of a savefile.
Definition at line 250 of file save_index.cpp.
References config::clear(), e, config::empty(), lg::err(), find_save_file(), filesystem::is_bzip2_file(), filesystem::is_gzip_file(), LOG_SAVE, game::error::message, read(), read_bz2(), read_gz(), and replace_space2underbar().
Referenced by playsingle_controller::hotkey_handler::load_autosave(), savegame::loadgame::load_game(), savegame::loadgame::load_multiplayer_game(), and savegame::save_index_class::rebuild().
| void savegame::savegame::remove_old_auto_saves | ( | const int | autosavemax, |
| const int | infinite_auto_saves | ||
| ) |
Remove autosaves that are no longer needed (according to the autosave policy in the preferences).
Definition at line 291 of file save_index.cpp.
References _(), preferences::autosavemax(), preferences::countdown(), delete_game(), get_saves_list(), i, and LOG_SAVE.
Referenced by savegame::autosave_savegame::autosave().
| bool savegame::savegame::save_game_exists | ( | const std::string & | name, |
| compression::format | compressed | ||
| ) |
Returns true if there is already a savegame with that name.
Definition at line 61 of file savegame.cpp.
References filesystem::file_exists(), compression::format_extension(), filesystem::get_saves_dir(), and replace_space2underbar().
Referenced by savegame::savegame::check_overwrite(), and play_controller::hotkey_handler::expand_autosaves().
| save_index_class savegame::save_index_manager |
Definition at line 146 of file save_index.cpp.
Referenced by savegame::savegame::finish_save_game(), and savegame::loadgame::load_game().
1.8.8