diff options
author | Gregory Montoir | 2004-01-12 13:40:02 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-01-12 13:40:02 +0000 |
commit | 95de2117a20da3b9828a385b4a6713e4d9524aa8 (patch) | |
tree | 6b13647be7a0340bc5c7227208a2880d890666e5 /queen/sound.cpp | |
parent | a685422a138c99af7f95f8deaf787425af356f9b (diff) | |
download | scummvm-rg350-95de2117a20da3b9828a385b4a6713e4d9524aa8.tar.gz scummvm-rg350-95de2117a20da3b9828a385b4a6713e4d9524aa8.tar.bz2 scummvm-rg350-95de2117a20da3b9828a385b4a6713e4d9524aa8.zip |
New save/load code, this *breaks* compatiblity with the previous
savefile format. Use the 'qsc' tool to convert your old files
(http://0x.7fc1.org/fotaq/qsc.[cpp|exe]).
svn-id: r12339
Diffstat (limited to 'queen/sound.cpp')
-rw-r--r-- | queen/sound.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/queen/sound.cpp b/queen/sound.cpp index 791dc2cbf6..19f7711f82 100644 --- a/queen/sound.cpp +++ b/queen/sound.cpp @@ -150,6 +150,16 @@ void Sound::playSong(int16 songNum) { _vm->music()->playSong(song); } +void Sound::saveState(byte *&ptr) { + WRITE_BE_UINT16(ptr, _lastOverride); ptr += 2; + // XXX lastmerge, lastalter, altmrgpri +} + +void Sound::loadState(uint32 ver, byte *&ptr) { + _lastOverride = (int16)READ_BE_UINT16(ptr); ptr += 2; + // XXX lastmerge, lastalter, altmrgpri +} + void SBSound::playSound(byte *sound, uint32 size) { byte flags = SoundMixer::FLAG_UNSIGNED | SoundMixer::FLAG_AUTOFREE; |