aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sound_towns.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-09-07 22:30:34 +0000
committerJohannes Schickel2008-09-07 22:30:34 +0000
commitbd10e674a3c5e7b3ac87aaa405565a3f532de52c (patch)
tree8147aea48be74620936767b0416c05eb20777e7f /engines/kyra/sound_towns.cpp
parent2bc093828f0c626c7dd57f9cb300284b8563e411 (diff)
downloadscummvm-rg350-bd10e674a3c5e7b3ac87aaa405565a3f532de52c.tar.gz
scummvm-rg350-bd10e674a3c5e7b3ac87aaa405565a3f532de52c.tar.bz2
scummvm-rg350-bd10e674a3c5e7b3ac87aaa405565a3f532de52c.zip
Got rid of all Common::File usages in Kyra.
svn-id: r34435
Diffstat (limited to 'engines/kyra/sound_towns.cpp')
-rw-r--r--engines/kyra/sound_towns.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp
index c57636a3fb..5bb09e5dc9 100644
--- a/engines/kyra/sound_towns.cpp
+++ b/engines/kyra/sound_towns.cpp
@@ -4122,9 +4122,9 @@ bool SoundTownsPC98_v2::init() {
// this misses the possibility that we play the tracks
// right off CD. So we should find another way to
// check if we have access to CD audio.
+ Resource *res = _vm->resource();
if (_musicEnabled &&
- (Common::File::exists("track1.mp3") || Common::File::exists("track1.ogg") ||
- Common::File::exists("track1.flac") || Common::File::exists("track1.fla")))
+ (res->exists("track1.mp3") || res->exists("track1.ogg") || res->exists("track1.flac") || res->exists("track1.fla")))
_musicEnabled = 2;
return _driver->init();