16 #ifndef SAVE_INDEX_H_INCLUDED
17 #define SAVE_INDEX_H_INCLUDED
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)...
void rebuild(const std::string &name)
void read_save_file(const std::string &name, config &cfg, std::string *error_log)
Read the complete config information out of a savefile.
std::vector< save_info > get_saves_list(const std::string *dir, const std::string *filter)
Get a list of available saves.
Definitions for the interface to Wesnoth Markup Language (WML).
std::string format_time_summary() const
GLdouble GLdouble GLdouble b
const config & summary() const
Class for writing a config out to a file in pieces.
void delete_game(const std::string &name)
Delete a savegame.
GLboolean GLboolean GLboolean GLboolean a
std::string format_time_local() const
save_index_class save_index_manager
void replace_underbar2space(std::string &name)
std::map< std::string, time_t > modified_
bool operator()(const save_info &a, const save_info &b) const
save_info(const std::string &name, const time_t &modified)
void set_modified(const std::string &name, const time_t &modified)
GLuint const GLchar * name
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Filename and modification date for a file list.
create_save_info(const std::string *d=nullptr)
const std::string & name() const
const time_t & modified() const
save_info operator()(const std::string &filename) const
A config object defines a single node in a WML file, with access to child nodes.
A structure for comparing to save_info objects based on their modified time.
GLsizei const GLcharARB ** string
void replace_space2underbar(std::string &name)