aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-11 16:56:19 +0000
committerJohannes Schickel2008-05-11 16:56:19 +0000
commita6ccfa4f096da1fa29f3bb40aa328f2052b14302 (patch)
treeb998074236ef9762499b4393db91a972a638e224 /engines/kyra
parent61a105c9ba05ccff6be46a7b5c8a77192aa0c87e (diff)
downloadscummvm-rg350-a6ccfa4f096da1fa29f3bb40aa328f2052b14302.tar.gz
scummvm-rg350-a6ccfa4f096da1fa29f3bb40aa328f2052b14302.tar.bz2
scummvm-rg350-a6ccfa4f096da1fa29f3bb40aa328f2052b14302.zip
Added saving of current album page of kyra3 like the original did.
svn-id: r32025
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/saveload.cpp2
-rw-r--r--engines/kyra/saveload_mr.cpp5
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/kyra/saveload.cpp b/engines/kyra/saveload.cpp
index fa3266685f..60548fcc33 100644
--- a/engines/kyra/saveload.cpp
+++ b/engines/kyra/saveload.cpp
@@ -29,7 +29,7 @@
#include "kyra/kyra.h"
-#define CURRENT_SAVE_VERSION 11
+#define CURRENT_SAVE_VERSION 12
#define GF_FLOPPY (1 << 0)
#define GF_TALKIE (1 << 1)
diff --git a/engines/kyra/saveload_mr.cpp b/engines/kyra/saveload_mr.cpp
index 8b727862a5..1e91121635 100644
--- a/engines/kyra/saveload_mr.cpp
+++ b/engines/kyra/saveload_mr.cpp
@@ -49,7 +49,7 @@ void KyraEngine_MR::saveGame(const char *fileName, const char *saveName) {
out->writeSint16BE(_lastMusicCommand);
out->writeByte(_currentChapter);
out->writeByte(_characterShapeFile);
- //XXX
+ out->writeByte(_album.curPage);
out->writeSint16BE(_score);
out->writeSint16BE(_scoreMax);
out->writeByte(_malcolmsMood);
@@ -158,7 +158,8 @@ void KyraEngine_MR::loadGame(const char *fileName) {
_lastMusicCommand = in.readSint16();
_currentChapter = in.readByte();
_characterShapeFile = in.readByte();
- //XXX
+ if (header.version >= 12 || header.originalSave)
+ _album.curPage = in.readByte();
_score = in.readSint16();
_scoreMax = in.readSint16();
_malcolmsMood = in.readByte();