diff options
author | Willem Jan Palenstijn | 2014-10-07 19:48:18 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-02-14 16:06:55 +0100 |
commit | 58ef44eb8d9d3eb78eb013441a8d6d12940ee5e3 (patch) | |
tree | 03e2e70bfdf6fda9afadb85eaa01a777c99225f6 /engines/sci/engine/savegame.cpp | |
parent | 26d55b09a8b198b0a9b9349d684eec6376d98c8c (diff) | |
download | scummvm-rg350-58ef44eb8d9d3eb78eb013441a8d6d12940ee5e3.tar.gz scummvm-rg350-58ef44eb8d9d3eb78eb013441a8d6d12940ee5e3.tar.bz2 scummvm-rg350-58ef44eb8d9d3eb78eb013441a8d6d12940ee5e3.zip |
SCI: Register and save playBed option to PlaySound
The playBed option is not handled yet, only stored. This increases
the savegame format version.
Diffstat (limited to 'engines/sci/engine/savegame.cpp')
-rw-r--r-- | engines/sci/engine/savegame.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/sci/engine/savegame.cpp b/engines/sci/engine/savegame.cpp index 0b55425406..692fa77a80 100644 --- a/engines/sci/engine/savegame.cpp +++ b/engines/sci/engine/savegame.cpp @@ -617,6 +617,10 @@ void MusicEntry::saveLoadWithSerializer(Common::Serializer &s) { s.syncAsSint32LE(fadeTicker); s.syncAsSint32LE(fadeTickerStep); s.syncAsByte(status); + if (s.getVersion() >= 32) + s.syncAsByte(playBed); + else if (s.isLoading()) + playBed = false; // pMidiParser and pStreamAud will be initialized when the // sound list is reconstructed in gamestate_restore() @@ -650,7 +654,7 @@ void SoundCommandParser::reconstructPlayList() { if (_soundVersion >= SCI_VERSION_1_EARLY) writeSelectorValue(_segMan, (*i)->soundObj, SELECTOR(vol), (*i)->volume); - processPlaySound((*i)->soundObj); + processPlaySound((*i)->soundObj, (*i)->playBed); } } } |