diff options
author | Paweł Kołodziejski | 2004-05-02 10:07:59 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2004-05-02 10:07:59 +0000 |
commit | cdc73249519ccc391ff26c85dbfda02664ba94f1 (patch) | |
tree | cd1e1ac09c33f6a92bf89bb3e554716b4664dbfa /scumm | |
parent | 805b1f8e0d6c5dfbf1b43e13a4cfce14ddaff102 (diff) | |
download | scummvm-rg350-cdc73249519ccc391ff26c85dbfda02664ba94f1.tar.gz scummvm-rg350-cdc73249519ccc391ff26c85dbfda02664ba94f1.tar.bz2 scummvm-rg350-cdc73249519ccc391ff26c85dbfda02664ba94f1.zip |
stub for digital imuse save/load
svn-id: r13734
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/imuse_digi/dimuse.cpp | 3 | ||||
-rw-r--r-- | scumm/imuse_digi/dimuse.h | 1 | ||||
-rw-r--r-- | scumm/saveload.cpp | 5 |
3 files changed, 8 insertions, 1 deletions
diff --git a/scumm/imuse_digi/dimuse.cpp b/scumm/imuse_digi/dimuse.cpp index c53b6fa4f8..434a486790 100644 --- a/scumm/imuse_digi/dimuse.cpp +++ b/scumm/imuse_digi/dimuse.cpp @@ -76,6 +76,9 @@ void IMuseDigital::resetState() { _nextSeqToPlay = 0; } +void IMuseDigital::saveOrLoad(Serializer *ser) { +} + void IMuseDigital::callback() { Common::StackLock lock(_mutex, "IMuseDigital::callback()"); int l = 0; diff --git a/scumm/imuse_digi/dimuse.h b/scumm/imuse_digi/dimuse.h index 4f8a095379..a6ba576b36 100644 --- a/scumm/imuse_digi/dimuse.h +++ b/scumm/imuse_digi/dimuse.h @@ -132,6 +132,7 @@ public: void startSound(int soundId) { error("MusicEngine::startSound() Should be never called"); } + void saveOrLoad(Serializer *ser); void resetState(); void setGroupVoiceVolume(int volume) { _volVoice = volume; } diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index 42c8fa24c8..198cd6a614 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -141,7 +141,6 @@ bool ScummEngine::loadState(int slot, bool compat, SaveFileManager *mgr) { if (_imuseDigital) { _imuseDigital->stopAllSounds(); - // temporary hack for initial state for imuse music _imuseDigital->resetState(); } @@ -789,6 +788,10 @@ void ScummEngine::saveOrLoad(Serializer *s, uint32 savegameVersion) { _imuse->setMasterVolume(ConfMan.getInt("master_volume")); _imuse->set_music_volume(ConfMan.getInt("music_volume")); } + + if (_imuseDigital) { + _imuseDigital->saveOrLoad(s); + } } void ScummEngine::saveLoadResource(Serializer *ser, int type, int idx) { |