aboutsummaryrefslogtreecommitdiff
path: root/scumm/imuse_digi
diff options
context:
space:
mode:
authorPaweł Kołodziejski2004-05-02 14:03:21 +0000
committerPaweł Kołodziejski2004-05-02 14:03:21 +0000
commit7da4eccb1d5297d528bb664ef0d55dae9d5e58f2 (patch)
tree265ac2ebfa34984f7bf702d12ede47f36fb69b0a /scumm/imuse_digi
parentf6b8830158f279c7dbee17a133ae9d1813ee4703 (diff)
downloadscummvm-rg350-7da4eccb1d5297d528bb664ef0d55dae9d5e58f2.tar.gz
scummvm-rg350-7da4eccb1d5297d528bb664ef0d55dae9d5e58f2.tar.bz2
scummvm-rg350-7da4eccb1d5297d528bb664ef0d55dae9d5e58f2.zip
enabled save/load code for imuse digital
svn-id: r13746
Diffstat (limited to 'scumm/imuse_digi')
-rw-r--r--scumm/imuse_digi/dimuse.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/scumm/imuse_digi/dimuse.cpp b/scumm/imuse_digi/dimuse.cpp
index 8922ea6727..73956e8ecf 100644
--- a/scumm/imuse_digi/dimuse.cpp
+++ b/scumm/imuse_digi/dimuse.cpp
@@ -78,9 +78,6 @@ void IMuseDigital::resetState() {
void IMuseDigital::saveOrLoad(Serializer *ser) {
Common::StackLock lock(_mutex, "IMuseDigital::saveOrLoad()");
-
- // save-load disabled
- return;
const SaveLoadEntry mainEntries[] = {
MKLINE(IMuseDigital, _volVoice, sleInt32, VER(31)),
@@ -123,14 +120,12 @@ void IMuseDigital::saveOrLoad(Serializer *ser) {
MKEND()
};
- int i;
-
ser->_ref_me = this;
ser->_save_ref = NULL;
ser->_load_ref = NULL;
ser->saveLoadEntries(this, mainEntries);
- for (i = 0; i < MAX_DIGITAL_TRACKS + MAX_DIGITAL_FADETRACKS; i++) {
+ for (int i = 0; i < MAX_DIGITAL_TRACKS + MAX_DIGITAL_FADETRACKS; i++) {
ser->saveLoadEntries(_track[i], trackEntries);
if (!ser->isSaving()) {
if (!_track[i]->used)