|
UFO: Alien Invasion
|
UI Callbacks for savegame management. More...
#include "../../../common/filesys.h"#include "../../cl_shared.h"#include "cp_save_callbacks.h"#include "cp_campaign.h"#include "cp_save.h"#include "cp_popup.h"#include "missions/cp_mission_baseattack.h"
Go to the source code of this file.
Functions | |
| static void | SAV_ListSaveGames_f (void) |
| Console command to list savegames. | |
| static void | SAV_GameLoad_f (void) |
| Console command to load a savegame. | |
| static void | SAV_GameContinue_f (void) |
| Loads the last saved game. | |
| static void | SAV_GameSave_f (void) |
| Console command binding for save function. | |
| static void | SAV_GameDelete_f (void) |
| Removes savegame file. | |
| static void | SAV_GameQuickLoadInit_f (void) |
| Checks whether there is a quicksave file and opens the quickload menu if there is one. | |
| static void | SAV_GameQuickSave_f (void) |
| Saves to the quick save slot. | |
| static void | SAV_GameQuickLoad_f (void) |
| Loads the quick save slot. | |
| static void | SAV_GameSaveAllowed_f (void) |
| Returns whether saving game is allowed. | |
| void | SAV_InitCallbacks (void) |
| Register UI callbacks for the savegame-subsystem. | |
| void | SAV_ShutdownCallbacks (void) |
| UnregisterUI callbacks for the savegame-subsystem. | |
Variables | |
| static cvar_t * | cl_lastsave |
| static const cmdList_t | saveCallbacks [] |
UI Callbacks for savegame management.
Definition in file cp_save_callbacks.cpp.
Loads the last saved game.
Definition at line 104 of file cp_save_callbacks.cpp.
References _, cgi, cl_lastsave, CP_IsRunning(), and SAV_GameLoad().
Removes savegame file.
Definition at line 160 of file cp_save_callbacks.cpp.
References cgi, MAX_OSPATH, Q_strcat(), and SAVEGAME_EXTENSION.
Console command to load a savegame.
Definition at line 70 of file cp_save_callbacks.cpp.
References _, cgi, DEBUG_CLIENT, MAX_OSPATH, SAV_GameLoad(), and SAVEGAME_EXTENSION.
Loads the quick save slot.
Definition at line 214 of file cp_save_callbacks.cpp.
References _, cgi, CP_CheckBaseAttacks(), CP_Popup(), MS_AddNewMessage(), MSG_INFO, and SAV_GameLoad().
Checks whether there is a quicksave file and opens the quickload menu if there is one.
Definition at line 179 of file cp_save_callbacks.cpp.
References cgi, MAX_OSPATH, and SAVEGAME_EXTENSION.
Saves to the quick save slot.
Definition at line 195 of file cp_save_callbacks.cpp.
References _, cgi, CP_IsRunning(), MS_AddNewMessage(), MSG_INFO, and SAV_GameSave().
Console command binding for save function.
Definition at line 131 of file cp_save_callbacks.cpp.
References _, cgi, CP_Popup(), MAX_VAR, Q_strncpyz(), and SAV_GameSave().
Returns whether saving game is allowed.
Definition at line 235 of file cp_save_callbacks.cpp.
References cgi, and SAV_GameSaveAllowed().
Register UI callbacks for the savegame-subsystem.
Definition at line 265 of file cp_save_callbacks.cpp.
References cgi, cl_lastsave, CVAR_ARCHIVE, and saveCallbacks.
Referenced by GAME_CP_InitStartup().
Console command to list savegames.
Definition at line 38 of file cp_save_callbacks.cpp.
References cgi, Com_SkipPath(), Com_StripExtension(), saveFileHeader_t::gameDate, MAX_OSPATH, saveFileHeader_t::name, Q_strcat(), saveFileHeader_t::realDate, and SAV_LoadHeader().
UnregisterUI callbacks for the savegame-subsystem.
Definition at line 275 of file cp_save_callbacks.cpp.
References cgi, and saveCallbacks.
Referenced by GAME_CP_Shutdown().
|
static |
Definition at line 33 of file cp_save_callbacks.cpp.
Referenced by SAV_GameContinue_f(), and SAV_InitCallbacks().
|
static |
Definition at line 249 of file cp_save_callbacks.cpp.
Referenced by SAV_InitCallbacks(), and SAV_ShutdownCallbacks().