aboutsummaryrefslogtreecommitdiff
path: root/engines/gob/save/savefile.h
diff options
context:
space:
mode:
authorSven Hesse2011-01-21 19:15:10 +0000
committerSven Hesse2011-01-21 19:15:10 +0000
commit9e338a170f8253fea2accf2b95f44806dfdf24f8 (patch)
treee759a9c97e30fbe123112639a881ef0a3b6d1981 /engines/gob/save/savefile.h
parent0e33dd91645bb26c51731cc79b2f142b3883047c (diff)
downloadscummvm-rg350-9e338a170f8253fea2accf2b95f44806dfdf24f8.tar.gz
scummvm-rg350-9e338a170f8253fea2accf2b95f44806dfdf24f8.tar.bz2
scummvm-rg350-9e338a170f8253fea2accf2b95f44806dfdf24f8.zip
GOB: Add support for saving true color sprites
Not exactly the "nice", since up-depthing the sprite data to 24bit happens after it has been adapted to the current system's color format, so we're going to gradually lose precision when the save gets passed around different systems. Still, this is the least headachy solution, I guess... svn-id: r55383
Diffstat (limited to 'engines/gob/save/savefile.h')
-rw-r--r--engines/gob/save/savefile.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/gob/save/savefile.h b/engines/gob/save/savefile.h
index 980616bb74..eeee03847a 100644
--- a/engines/gob/save/savefile.h
+++ b/engines/gob/save/savefile.h
@@ -53,6 +53,9 @@ public:
SaveHeader(uint32 type = 0, uint32 version = 0, uint32 size = 0);
+ bool operator==(const SaveHeader &header) const;
+ bool operator!=(const SaveHeader &header) const;
+
/** Read the header out of a stream into this class. */
bool read(Common::ReadStream &stream);
/** Read the header out of a stream and checks it against this class's contents. */
@@ -151,10 +154,10 @@ private:
/** A save part holding a sprite. */
class SavePartSprite : public SavePart {
public:
- static const uint32 kVersion = 1;
+ static const uint32 kVersion = 2;
static const uint32 kID = MKID_BE('SPRT');
- SavePartSprite(uint32 width, uint32 height);
+ SavePartSprite(uint32 width, uint32 height, bool trueColor = false);
~SavePartSprite();
bool read(Common::ReadStream &stream);
@@ -177,6 +180,11 @@ private:
uint32 _width;
uint32 _height;
+ uint32 _spriteSize;
+
+ bool _oldFormat;
+ bool _trueColor;
+
byte *_dataSprite;
byte *_dataPalette;
};