diff options
Diffstat (limited to 'engines/cruise/saveload.h')
-rw-r--r-- | engines/cruise/saveload.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/engines/cruise/saveload.h b/engines/cruise/saveload.h index 11c8269b3c..96433bdee9 100644 --- a/engines/cruise/saveload.h +++ b/engines/cruise/saveload.h @@ -27,11 +27,21 @@ #define CRUISE_SAVELOAD_H #include "common/scummsys.h" +#include "graphics/surface.h" namespace Cruise { -int saveSavegameData(int saveGameIdx); -int loadSavegameData(int saveGameIdx); +#define CRUISE_SAVEGAME_VERSION 1 + +struct CruiseSavegameHeader { + uint8 version; + Common::String saveName; + Graphics::Surface *thumbnail; +}; + +Common::Error saveSavegameData(int saveGameIdx, const Common::String &saveName); +Common::Error loadSavegameData(int saveGameIdx); +bool readSavegameHeader(Common::InSaveFile *in, CruiseSavegameHeader &header); } // End of namespace Cruise |