Freeciv21
Develop your civilization from humble roots to a global empire
savemain.cpp File Reference
#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...
 

Function Documentation

◆ Q_GLOBAL_STATIC()

Q_GLOBAL_STATIC ( fcThread  ,
save_thread   
)

◆ save_game()

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().

◆ save_system_close()

void save_system_close ( )

Close saving system.

Definition at line 286 of file savemain.cpp.

Referenced by freeciv::server::shut_game_down().

◆ save_thread_run()

static void save_thread_run ( void *  arg)
static

Run game saving thread.

Definition at line 117 of file savemain.cpp.

Referenced by save_game().

◆ savegame_load()

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().

◆ savegame_save()

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().