aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-05-02 10:49:29 -0400
committerMatthew Hoops2011-05-02 10:58:17 -0400
commit07c3de5f7c944bf1b842345452e5b9f1486c89e0 (patch)
tree9198ff3e8b2899ebefb8e752c2f430676e8e0091
parent7c840b0c5e69fa2ffb636afc26affb0f25d14cbb (diff)
downloadscummvm-rg350-07c3de5f7c944bf1b842345452e5b9f1486c89e0.tar.gz
scummvm-rg350-07c3de5f7c944bf1b842345452e5b9f1486c89e0.tar.bz2
scummvm-rg350-07c3de5f7c944bf1b842345452e5b9f1486c89e0.zip
SCUMM: Add support for an alternate version of The Dig's demo
-rw-r--r--engines/scumm/detection_tables.h1
-rw-r--r--engines/scumm/sound.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/engines/scumm/detection_tables.h b/engines/scumm/detection_tables.h
index d66798cbf1..952abdb39a 100644
--- a/engines/scumm/detection_tables.h
+++ b/engines/scumm/detection_tables.h
@@ -483,6 +483,7 @@ static const GameFilenamePattern gameFilenamesTable[] = {
#ifdef ENABLE_SCUMM_7_8
{ "dig", "dig.la%d", kGenDiskNum, UNK_LANG, UNK, 0 },
+ { "dig", "thedig.la%d", kGenDiskNum, UNK_LANG, UNK, "Demo" }, // Used by an alternate version of the demo
{ "dig", "The Dig Data", kGenUnchanged, UNK_LANG, Common::kPlatformMacintosh, 0 },
{ "dig", "The Dig Demo Data", kGenUnchanged, UNK_LANG, Common::kPlatformMacintosh, "Demo" },
diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp
index 54f35c1969..a38119584f 100644
--- a/engines/scumm/sound.cpp
+++ b/engines/scumm/sound.cpp
@@ -527,6 +527,10 @@ void Sound::startTalkSound(uint32 offset, uint32 b, int mode, Audio::SoundHandle
sprintf(filename, "audio/%s.%d/%d.voc", roomname, offset, b);
_vm->openFile(*_sfxFile, filename);
if (!_sfxFile->isOpen()) {
+ sprintf(filename, "audio/%s_%d/%d.voc", roomname, offset, b);
+ _vm->openFile(*_sfxFile, filename);
+ }
+ if (!_sfxFile->isOpen()) {
sprintf(filename, "%d.%d.voc", offset, b);
_vm->openFile(*_sfxFile, filename);
}