aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Hoops2011-05-02 10:49:29 -0400
committerMatthew Hoops2011-05-02 11:24:04 -0400
commitee223528fc3588b54957b872a2daad47919d807f (patch)
tree7e14e7905e6db697a44d6bfccbcff239942278df
parentb2693c81ecfce7c60c5fa3be228a057173efc609 (diff)
downloadscummvm-rg350-ee223528fc3588b54957b872a2daad47919d807f.tar.gz
scummvm-rg350-ee223528fc3588b54957b872a2daad47919d807f.tar.bz2
scummvm-rg350-ee223528fc3588b54957b872a2daad47919d807f.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);
}