diff options
author | Eugene Sandulenko | 2011-06-28 22:55:14 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2011-06-29 17:16:25 +0300 |
commit | 15a16e556ca03b51b1fc03f135834bf57f592b52 (patch) | |
tree | 33b1fab3325c2ed4b7cc55e559526a2d08b9672a /engines/sword25/gfx | |
parent | c32a3ea0d30336771bab460ecccb58c4614e6294 (diff) | |
download | scummvm-rg350-15a16e556ca03b51b1fc03f135834bf57f592b52.tar.gz scummvm-rg350-15a16e556ca03b51b1fc03f135834bf57f592b52.tar.bz2 scummvm-rg350-15a16e556ca03b51b1fc03f135834bf57f592b52.zip |
SWORD25: Implement persistence functions for soundengine
Now sound is properly saved/restored. Implemented savegame versioning.
Compatibility with old saves pertained.
Diffstat (limited to 'engines/sword25/gfx')
-rw-r--r-- | engines/sword25/gfx/image/renderedimage.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/sword25/gfx/image/renderedimage.cpp b/engines/sword25/gfx/image/renderedimage.cpp index f5f33d8e02..3b29b0333f 100644 --- a/engines/sword25/gfx/image/renderedimage.cpp +++ b/engines/sword25/gfx/image/renderedimage.cpp @@ -72,7 +72,10 @@ static byte *readSavegameThumbnail(const Common::String &filename, uint &fileSiz // Seek to the actual PNG image loadString(*file); // Marker (BS25SAVEGAME) - loadString(*file); // Version + Common::String storedVersionID = loadString(*file); // Version + if (storedVersionID != "SCUMMVM1") + loadString(*file); + loadString(*file); // Description uint32 compressedGamedataSize = atoi(loadString(*file).c_str()); loadString(*file); // Uncompressed game data size |