aboutsummaryrefslogtreecommitdiff
path: root/engines/wage
diff options
context:
space:
mode:
authorCameron Cawley2019-08-10 23:32:12 +0100
committerFilippos Karapetis2019-08-11 18:58:40 +0300
commitd8dc31a6730dff72189b5ab240a5af06ab5dd135 (patch)
treea7bb9c6196377208cf4f37f52f88a750ff9cdd8c /engines/wage
parent6884349534edaa2ff12293ead7b7d4a07242c0e9 (diff)
downloadscummvm-rg350-d8dc31a6730dff72189b5ab240a5af06ab5dd135.tar.gz
scummvm-rg350-d8dc31a6730dff72189b5ab240a5af06ab5dd135.tar.bz2
scummvm-rg350-d8dc31a6730dff72189b5ab240a5af06ab5dd135.zip
WAGE: Don't require the data fork for the external sound file
Diffstat (limited to 'engines/wage')
-rw-r--r--engines/wage/world.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/engines/wage/world.cpp b/engines/wage/world.cpp
index fa8cfd57a1..713207070c 100644
--- a/engines/wage/world.cpp
+++ b/engines/wage/world.cpp
@@ -359,17 +359,11 @@ void World::addSound(Sound *sound) {
}
void World::loadExternalSounds(Common::String fname) {
- Common::File in;
-
- in.open(fname);
- if (!in.isOpen()) {
+ Common::MacResManager resMan;
+ if (!resMan.open(fname)) {
warning("Cannot load sound file <%s>", fname.c_str());
return;
}
- in.close();
-
- Common::MacResManager resMan;
- resMan.open(fname);
Common::MacResIDArray resArray;
Common::SeekableReadStream *res;