aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2014-04-18 23:55:31 +0200
committerJohannes Schickel2014-04-18 23:58:22 +0200
commit9cc4c42024080652d7f5cb9bd3039aed47c623d6 (patch)
tree9bfde8646ad04ca5d343a6cc8e50304692a5c7c3
parent23f15c754faa7f719db6849ed6a754e06e019366 (diff)
downloadscummvm-rg350-9cc4c42024080652d7f5cb9bd3039aed47c623d6.tar.gz
scummvm-rg350-9cc4c42024080652d7f5cb9bd3039aed47c623d6.tar.bz2
scummvm-rg350-9cc4c42024080652d7f5cb9bd3039aed47c623d6.zip
KYRA: Extend HACK to select CD audio for Kyra2 TOWNS.
Formerly we only checked track1.$EXT but we also support track01.$EXT. Guess this is a good example why we need to reconsider how we will handle detection of presense of CD audio tracks in general...
-rw-r--r--engines/kyra/sound_towns.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp
index 10cbc49c7c..725dedae3f 100644
--- a/engines/kyra/sound_towns.cpp
+++ b/engines/kyra/sound_towns.cpp
@@ -538,7 +538,8 @@ bool SoundTownsPC98_v2::init() {
// check if we have access to CD audio.
Resource *r = _vm->resource();
if (_musicEnabled &&
- (r->exists("track1.mp3") || r->exists("track1.ogg") || r->exists("track1.flac") || r->exists("track1.fla")))
+ (r->exists("track1.mp3") || r->exists("track1.ogg") || r->exists("track1.flac") || r->exists("track1.fla")
+ || r->exists("track01.mp3") || r->exists("track01.ogg") || r->exists("track01.flac") || r->exists("track01.fla")))
_musicEnabled = 2;
else
_musicEnabled = 1;