Skip to content

Commit

Permalink
Game Save: Store a copy of the save header in saveinfo_t
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Jun 24, 2012
1 parent ab5872d commit 3221071
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 90 deletions.
2 changes: 0 additions & 2 deletions doomsday/plugins/common/include/p_saveg.h
Expand Up @@ -40,8 +40,6 @@ void SV_Init(void);
/// Shutdown this module.
void SV_Shutdown(void);

saveheader_t* SV_SaveHeader(void);

boolean SV_SaveGame(int slot, const char* name);

boolean SV_LoadGame(int slot);
Expand Down
3 changes: 2 additions & 1 deletion doomsday/plugins/common/include/p_saveio.h
Expand Up @@ -50,6 +50,7 @@ typedef struct saveheader_s {
typedef struct saveinfo_s {
ddstring_t filePath;
ddstring_t name;
saveheader_t header;
} saveinfo_t;

typedef struct savegameparam_s {
Expand Down Expand Up @@ -138,7 +139,7 @@ boolean SV_HxHaveMapSaveForSlot(int slot, uint map);
* @return Game-save info for logical save @a slot. Always returns valid
* info even if supplied with an invalid or unused slot identifer.
*/
const saveinfo_t* SV_SaveInfoForSlot(int slot);
saveinfo_t* SV_SaveInfoForSlot(int slot);

boolean SV_ComposeSavePathForSlot(int slot, ddstring_t* path);
#if __JHEXEN__
Expand Down

0 comments on commit 3221071

Please sign in to comment.