aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/savefile.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/bladerunner/savefile.h')
-rw-r--r--engines/bladerunner/savefile.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/bladerunner/savefile.h b/engines/bladerunner/savefile.h
index bcd1619496..64fb0b4999 100644
--- a/engines/bladerunner/savefile.h
+++ b/engines/bladerunner/savefile.h
@@ -23,11 +23,14 @@
#ifndef BLADERUNNER_SAVEFILE_H
#define BLADERUNNER_SAVEFILE_H
+#include "common/array.h"
#include "common/memstream.h"
#include "common/types.h"
#include "graphics/surface.h"
+#include "engines/savestate.h"
+
namespace Common {
class OutSaveFile;
class String;
@@ -40,6 +43,7 @@ class Vector2;
class Vector3;
class BoundingBox;
+
struct SaveFileHeader {
uint8 _version;
Common::String _name;
@@ -51,7 +55,7 @@ struct SaveFileHeader {
Graphics::Surface *_thumbnail;
};
-class SaveFile {
+class SaveFileManager {
private:
static const uint32 kTag = MKTAG('B', 'R', 'S', 'V');
static const uint32 kVersion = 1;
@@ -60,6 +64,9 @@ private:
public:
static const uint32 kThumbnailSize = 9600; // 80x60x16bpp
+ static SaveStateList list(const Common::String &target);
+ static SaveStateDescriptor queryMetaInfos(const Common::String &target, int slot);
+
static bool readHeader(Common::SeekableReadStream &in, SaveFileHeader &header, bool skipThumbnail = true);
static bool writeHeader(Common::WriteStream &out, SaveFileHeader &header);
};