|
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(), SAV_GameContinue_f(), SAV_GameLoad(), and cvar_t::string.
Referenced by SAV_GameContinue_f().
Removes savegame file.
Definition at line 160 of file cp_save_callbacks.cpp.
References cgi, cgame_import_t::Cmd_Argv(), cgame_import_t::GetAbsoluteSavePath(), MAX_OSPATH, Q_strcat(), SAV_GameDelete_f(), and SAVEGAME_EXTENSION.
Referenced by SAV_GameDelete_f().
Console command to load a savegame.
Definition at line 70 of file cp_save_callbacks.cpp.
References _, cgi, cgame_import_t::Cmd_Argv(), DEBUG_CLIENT, cgame_import_t::GetRelativeSavePath(), MAX_OSPATH, SAV_GameLoad(), SAV_GameLoad_f(), and SAVEGAME_EXTENSION.
Referenced by SAV_GameLoad_f().
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, SAV_GameLoad(), and SAV_GameQuickLoad_f().
Referenced by SAV_GameQuickLoad_f().
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, cgame_import_t::GetRelativeSavePath(), MAX_OSPATH, SAV_GameQuickLoadInit_f(), and SAVEGAME_EXTENSION.
Referenced by SAV_GameQuickLoadInit_f().
Saves to the quick save slot.
Definition at line 195 of file cp_save_callbacks.cpp.
References _, cgi, CP_IsRunning(), MS_AddNewMessage(), MSG_INFO, SAV_GameQuickSave_f(), and SAV_GameSave().
Referenced by SAV_GameQuickSave_f().
Console command binding for save function.
Definition at line 131 of file cp_save_callbacks.cpp.
References _, cgi, cgame_import_t::Cmd_Argv(), CP_Popup(), MAX_VAR, Q_strncpyz(), SAV_GameSave(), and SAV_GameSave_f().
Referenced by SAV_GameSave_f().
Returns whether saving game is allowed.
Definition at line 235 of file cp_save_callbacks.cpp.
References cgi, cgame_import_t::Cmd_Argv(), SAV_GameSaveAllowed(), and SAV_GameSaveAllowed_f().
Referenced by SAV_GameSaveAllowed_f().
Register UI callbacks for the savegame-subsystem.
Definition at line 265 of file cp_save_callbacks.cpp.
References cgi, cl_lastsave, CVAR_ARCHIVE, cgame_import_t::Cvar_Get(), SAV_InitCallbacks(), and saveCallbacks.
Referenced by GAME_CP_InitStartup(), and SAV_InitCallbacks().
Console command to list savegames.
Definition at line 38 of file cp_save_callbacks.cpp.
References cgi, cgame_import_t::Cmd_Argv(), Com_SkipPath(), Com_StripExtension(), cgame_import_t::FS_NextFileFromFileList(), saveFileHeader_t::gameDate, cgame_import_t::GetRelativeSavePath(), MAX_OSPATH, saveFileHeader_t::name, Q_strcat(), saveFileHeader_t::realDate, SAV_ListSaveGames_f(), and SAV_LoadHeader().
Referenced by SAV_ListSaveGames_f().
UnregisterUI callbacks for the savegame-subsystem.
Definition at line 275 of file cp_save_callbacks.cpp.
References cgi, SAV_ShutdownCallbacks(), and saveCallbacks.
Referenced by GAME_CP_Shutdown(), and SAV_ShutdownCallbacks().
|
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().