Freeciv-3.3
Loading...
Searching...
No Matches
Functions
savemain.h File Reference
#include "support.h"

Go to the source code of this file.

Functions

void savegame_load (struct section_file *sfile)
 
void savegame_save (struct section_file *sfile, const char *save_reason, bool scenario)
 
void save_game (const char *orig_filename, const char *save_reason, bool scenario)
 
void save_system_close (void)
 

Function Documentation

◆ 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 143 of file savemain.c.

Referenced by api_server_save(), handle_save_scenario(), save_command(), save_game_auto(), and scensave_command().

◆ save_system_close()

void save_system_close ( void  )

Close saving system.

Definition at line 329 of file savemain.c.

Referenced by server_quit(), and srv_main().

◆ savegame_load()

void savegame_load ( struct section_file sfile)

Main entry point for loading a game.

Definition at line 43 of file savemain.c.

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 96 of file savemain.c.

Referenced by save_game().