#include <boost/iostreams/filter/gzip.hpp>
#include "save_index.hpp"
#include "format_time_summary.hpp"
#include "formula/string_utils.hpp"
#include "game_end_exceptions.hpp"
#include "game_preferences.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "serialization/binary_or_text.hpp"
#include "serialization/parser.hpp"
#include "team.hpp"
#include "filesystem.hpp"
#include "config.hpp"
Go to the source code of this file.
Classes | |
class | savegame::filename_filter |
Namespaces | |
savegame | |
Macros | |
#define | LOG_SAVE LOG_STREAM(info, log_engine) |
#define | ERR_SAVE LOG_STREAM(err, log_engine) |
#define | LOG_RG LOG_STREAM(info, log_enginerefac) |
Functions | |
void | replace_underbar2space (std::string &name) |
void | replace_space2underbar (std::string &name) |
void | savegame::extract_summary_from_config (config &, config &) |
std::vector< save_info > | savegame::get_saves_list (const std::string *dir, const std::string *filter) |
Get a list of available saves. More... | |
static std::istream * | savegame::find_save_file (const std::string &name, const std::string &alt_name, const std::vector< std::string > &suffixes) |
void | savegame::read_save_file (const std::string &name, config &cfg, std::string *error_log) |
Read the complete config information out of a savefile. More... | |
void | 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). More... | |
void | savegame::delete_game (const std::string &name) |
Delete a savegame. More... | |
Variables | |
static lg::log_domain | log_engine ("engine") |
static lg::log_domain | log_enginerefac ("enginerefac") |
save_index_class | savegame::save_index_manager |
#define ERR_SAVE LOG_STREAM(err, log_engine) |
Definition at line 35 of file save_index.cpp.
Referenced by savegame::save_index_class::data(), savegame::extract_summary_from_config(), and savegame::save_index_class::write_save_index().
#define LOG_RG LOG_STREAM(info, log_enginerefac) |
Definition at line 38 of file save_index.cpp.
#define LOG_SAVE LOG_STREAM(info, log_engine) |
Definition at line 34 of file save_index.cpp.
Referenced by savegame::find_save_file(), savegame::save_info::format_time_local(), savegame::read_save_file(), and savegame::remove_old_auto_saves().
void replace_space2underbar | ( | std::string & | name | ) |
Definition at line 43 of file save_index.cpp.
References utils::replace().
Referenced by savegame::delete_game(), savegame::get_saves_list(), savegame::savegame::open_save_game(), savegame::read_save_file(), savegame::save_index_class::rebuild(), and savegame::save_game_exists().
void replace_underbar2space | ( | std::string & | name | ) |
Definition at line 40 of file save_index.cpp.
References utils::replace().
Referenced by savegame::create_save_info::operator()().
|
static |
|
static |