diff options
author | Martin Kiewitz | 2010-01-01 14:22:07 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-01-01 14:22:07 +0000 |
commit | 385c462352f542b5b7a614b1f5b144ff9618b0a5 (patch) | |
tree | 30a5d21608677621d2ce7a84b43bbc546d67c36e /engines/sci/engine | |
parent | 5b9409859b641a29ef573b27467a231a5201b6c7 (diff) | |
download | scummvm-rg350-385c462352f542b5b7a614b1f5b144ff9618b0a5.tar.gz scummvm-rg350-385c462352f542b5b7a614b1f5b144ff9618b0a5.tar.bz2 scummvm-rg350-385c462352f542b5b7a614b1f5b144ff9618b0a5.zip |
SCI: fixing saved game compatibility
svn-id: r46827
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 11 | ||||
-rw-r--r-- | engines/sci/engine/savegame.h | 2 |
2 files changed, 7 insertions, 6 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 75f191256f..efdaa13490 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -133,11 +133,11 @@ void MusicEntry::saveLoadWithSerializer(Common::Serializer &s) { 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 @@ void SciMusic::saveLoadWithSerializer(Common::Serializer &s) { 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; diff --git a/engines/sci/engine/savegame.h b/engines/sci/engine/savegame.h index 8a4d8e7d3b..38dcd04619 100644 --- a/engines/sci/engine/savegame.h +++ b/engines/sci/engine/savegame.h @@ -36,7 +36,7 @@ namespace Sci { struct EngineState; enum { - CURRENT_SAVEGAME_VERSION = 14, + CURRENT_SAVEGAME_VERSION = 17, MINIMUM_SAVEGAME_VERSION = 9 }; |