![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <fc_config.h>#include <QDir>#include <QString>#include "fcthread.h"#include "log.h"#include "registry.h"#include "registry_ini.h"#include "ai.h"#include "capability.h"#include "game.h"#include "console.h"#include "notify.h"#include "savegame2.h"#include "savegame3.h"#include "savemain.h"
Include dependency graph for savemain.cpp:Go to the source code of this file.
Classes | |
| struct | save_thread_data |
Functions | |
| Q_GLOBAL_STATIC (fcThread, save_thread) | |
| void | savegame_load (struct section_file *sfile) |
| Main entry point for loading a game. More... | |
| void | savegame_save (struct section_file *sfile, const char *save_reason, bool scenario) |
| Main entry point for saving a game. More... | |
| static void | save_thread_run (void *arg) |
| Run game saving thread. More... | |
| void | save_game (const char *orig_filename, const char *save_reason, bool scenario) |
| Unconditionally save the game, with specified filename. More... | |
| void | save_system_close () |
| Close saving system. More... | |
| Q_GLOBAL_STATIC | ( | fcThread | , |
| save_thread | |||
| ) |
| void save_game | ( | const char * | orig_filename, |
| const char * | save_reason, | ||
| bool | scenario | ||
| ) |
Unconditionally save the game, with specified filename.
Always prints a message: either save ok, or failed.
Definition at line 139 of file savemain.cpp.
Referenced by api_server_save(), handle_save_scenario(), save_command(), save_game_auto(), and scensave_command().
| void save_system_close | ( | ) |
Close saving system.
Definition at line 286 of file savemain.cpp.
Referenced by freeciv::server::shut_game_down().
|
static |
| void savegame_load | ( | struct section_file * | sfile | ) |
Main entry point for loading a game.
Definition at line 46 of file savemain.cpp.
Referenced by load_command().
| void savegame_save | ( | struct section_file * | sfile, |
| const char * | save_reason, | ||
| bool | scenario | ||
| ) |
Main entry point for saving a game.
Definition at line 102 of file savemain.cpp.
Referenced by save_game().