[Scummvm-cvs-logs] SF.net SVN: scummvm: [32025] scummvm/trunk/engines/kyra

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sun May 11 18:56:19 CEST 2008


Revision: 32025
          http://scummvm.svn.sourceforge.net/scummvm/?rev=32025&view=rev
Author:   lordhoto
Date:     2008-05-11 09:56:19 -0700 (Sun, 11 May 2008)

Log Message:
-----------
Added saving of current album page of kyra3 like the original did.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/saveload.cpp
    scummvm/trunk/engines/kyra/saveload_mr.cpp

Modified: scummvm/trunk/engines/kyra/saveload.cpp
===================================================================
--- scummvm/trunk/engines/kyra/saveload.cpp	2008-05-11 16:48:54 UTC (rev 32024)
+++ scummvm/trunk/engines/kyra/saveload.cpp	2008-05-11 16:56:19 UTC (rev 32025)
@@ -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)

Modified: scummvm/trunk/engines/kyra/saveload_mr.cpp
===================================================================
--- scummvm/trunk/engines/kyra/saveload_mr.cpp	2008-05-11 16:48:54 UTC (rev 32024)
+++ scummvm/trunk/engines/kyra/saveload_mr.cpp	2008-05-11 16:56:19 UTC (rev 32025)
@@ -49,7 +49,7 @@
 	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 @@
 	_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();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list