aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm/imuse_digi/dimuse_sndmgr.cpp10
-rw-r--r--scumm/scumm.cpp2
-rw-r--r--scumm/scumm.h2
-rw-r--r--scumm/vars.cpp8
4 files changed, 18 insertions, 4 deletions
diff --git a/scumm/imuse_digi/dimuse_sndmgr.cpp b/scumm/imuse_digi/dimuse_sndmgr.cpp
index 94ebc7e03b..8e164d0262 100644
--- a/scumm/imuse_digi/dimuse_sndmgr.cpp
+++ b/scumm/imuse_digi/dimuse_sndmgr.cpp
@@ -249,6 +249,11 @@ bool ImuseDigiSndMgr::openMusicBundle(soundStruct *sound, int disk) {
else
error("ImuseDigiSndMgr::openMusicBundle() Don't know which bundle file to load");
+ if (result)
+ _vm->VAR(_vm->VAR_MUSIC_BUNDLE_LOADED) = 1;
+ else
+ _vm->VAR(_vm->VAR_MUSIC_BUNDLE_LOADED) = 0;
+
return result;
}
@@ -283,6 +288,11 @@ bool ImuseDigiSndMgr::openVoiceBundle(soundStruct *sound, int disk) {
else
error("ImuseDigiSndMgr::openVoiceBundle() Don't know which bundle file to load");
+ if (result)
+ _vm->VAR(_vm->VAR_VOICE_BUNDLE_LOADED) = 1;
+ else
+ _vm->VAR(_vm->VAR_VOICE_BUNDLE_LOADED) = 0;
+
return result;
}
diff --git a/scumm/scumm.cpp b/scumm/scumm.cpp
index 57c212a11f..98c69325f8 100644
--- a/scumm/scumm.cpp
+++ b/scumm/scumm.cpp
@@ -727,6 +727,8 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS
VAR_BLAST_ABOVE_TEXT = 0xFF;
VAR_VOICE_MODE = 0xFF;
VAR_NUM_GLOBAL_OBJS = 0xFF;
+ VAR_MUSIC_BUNDLE_LOADED = 0xFF;
+ VAR_VOICE_BUNDLE_LOADED = 0xFF;
// Use g_scumm from error() ONLY
g_scumm = this;
diff --git a/scumm/scumm.h b/scumm/scumm.h
index 35dbf87638..50e8cc8d3b 100644
--- a/scumm/scumm.h
+++ b/scumm/scumm.h
@@ -1262,6 +1262,8 @@ public:
byte VAR_BLAST_ABOVE_TEXT;
byte VAR_VOICE_MODE;
byte VAR_NUM_GLOBAL_OBJS;
+ byte VAR_MUSIC_BUNDLE_LOADED;
+ byte VAR_VOICE_BUNDLE_LOADED;
};
// This is a constant lookup table of reverse bit masks
diff --git a/scumm/vars.cpp b/scumm/vars.cpp
index a54fac20bb..dbc584bf1c 100644
--- a/scumm/vars.cpp
+++ b/scumm/vars.cpp
@@ -348,8 +348,8 @@ void ScummEngine_v7::setupScummVars() {
VAR_STRING2DRAW = 130;
- //VAR_MUSIC_BUNDLE_LOADED = 135;
- //VAR_VOICE_BUNDLE_LOADED = 136;
+ VAR_MUSIC_BUNDLE_LOADED = 135;
+ VAR_VOICE_BUNDLE_LOADED = 136;
}
@@ -394,8 +394,8 @@ void ScummEngine_v8::setupScummVars() {
VAR_LANGUAGE = 41;
VAR_CURRENTDISK = 42;
- //VAR_MUSIC_BUNDLE_LOADED = 45;
- //VAR_VOICE_BUNDLE_LOADED = 46;
+ VAR_MUSIC_BUNDLE_LOADED = 45;
+ VAR_VOICE_BUNDLE_LOADED = 46;
VAR_SCROLL_SCRIPT = 50;
VAR_ENTRY_SCRIPT = 51;