[Scummvm-cvs-logs] SF.net SVN: scummvm:[46827] scummvm/trunk/engines/sci/engine
m_kiewitz at users.sourceforge.net
m_kiewitz at users.sourceforge.net
Fri Jan 1 15:22:09 CET 2010
Revision: 46827
http://scummvm.svn.sourceforge.net/scummvm/?rev=46827&view=rev
Author: m_kiewitz
Date: 2010-01-01 14:22:07 +0000 (Fri, 01 Jan 2010)
Log Message:
-----------
SCI: fixing saved game compatibility
Modified Paths:
--------------
scummvm/trunk/engines/sci/engine/savegame.cpp
scummvm/trunk/engines/sci/engine/savegame.h
Modified: scummvm/trunk/engines/sci/engine/savegame.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/savegame.cpp 2010-01-01 14:15:07 UTC (rev 46826)
+++ scummvm/trunk/engines/sci/engine/savegame.cpp 2010-01-01 14:22:07 UTC (rev 46827)
@@ -133,11 +133,11 @@
s.syncAsSint16LE(resnum);
s.syncAsSint16LE(dataInc);
s.syncAsSint16LE(ticker);
- s.syncAsSint16LE(signal);
+ s.syncAsSint16LE(signal, VER(17));
s.syncAsByte(prio);
- s.syncAsSint16LE(loop);
+ s.syncAsSint16LE(loop, VER(17));
s.syncAsByte(volume);
- s.syncAsByte(hold);
+ s.syncAsByte(hold, VER(17));
s.syncAsByte(fadeTo);
s.syncAsSint16LE(fadeStep);
s.syncAsSint32LE(fadeTicker);
@@ -630,10 +630,11 @@
s.syncAsByte(_soundOn);
s.syncAsByte(masterVolume);
} else if (s.isLoading()) {
- if (s.getVersion() >= 14) {
+ if (s.getVersion() >= 15) {
s.syncAsByte(_soundOn);
s.syncAsByte(masterVolume);
- s.syncAsByte(_reverb);
+ _reverb = 0;
+ s.syncAsByte(_reverb, VER(17));
} else {
_soundOn = true;
masterVolume = 15;
Modified: scummvm/trunk/engines/sci/engine/savegame.h
===================================================================
--- scummvm/trunk/engines/sci/engine/savegame.h 2010-01-01 14:15:07 UTC (rev 46826)
+++ scummvm/trunk/engines/sci/engine/savegame.h 2010-01-01 14:22:07 UTC (rev 46827)
@@ -36,7 +36,7 @@
struct EngineState;
enum {
- CURRENT_SAVEGAME_VERSION = 14,
+ CURRENT_SAVEGAME_VERSION = 17,
MINIMUM_SAVEGAME_VERSION = 9
};
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