aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2007-12-22 23:41:14 +0000
committerJohannes Schickel2007-12-22 23:41:14 +0000
commitc9891423e3155e943aab536f1de44db061f88a14 (patch)
tree3eeccb03510511fbf288a0ad23fa5c0882540529 /engines/kyra
parent0cbff0fc423587e38b72407aa60fc71aa8e00475 (diff)
downloadscummvm-rg350-c9891423e3155e943aab536f1de44db061f88a14.tar.gz
scummvm-rg350-c9891423e3155e943aab536f1de44db061f88a14.tar.bz2
scummvm-rg350-c9891423e3155e943aab536f1de44db061f88a14.zip
Added FIXME comment.
svn-id: r29954
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/sound_towns.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp
index 65f53d60ff..000c9ebe95 100644
--- a/engines/kyra/sound_towns.cpp
+++ b/engines/kyra/sound_towns.cpp
@@ -1430,9 +1430,16 @@ SoundTowns_v2::~SoundTowns_v2() {
bool SoundTowns_v2::init() {
//_driver = new SoundTowns_v2_TwnDriver(_mixer);
_vm->checkCD();
- Common::File f;
- if (_musicEnabled && (f.exists("track1.mp3") ||
- f.exists("track1.ogg") || f.exists("track1.flac") || f.exists("track1.fla")))
+ // FIXME While checking for 'track1.XXX(X)' looks like
+ // a good idea, but we should definitly not be doing this
+ // here. Basically our filenaming scheme could change
+ // or we added support for other audio formats. Also
+ // this misses the posibility that we play the tracks
+ // right off CD. So we should find another way to
+ // check if we have access to CD audio.
+ if (_musicEnabled &&
+ (Common::File::exists("track1.mp3") || Common::File::exists("track1.ogg") ||
+ Common::File::exists("track1.flac") || Common::File::exists("track1.fla")))
_musicEnabled = 2;
return true;//_driver->init();
}