From d8dc31a6730dff72189b5ab240a5af06ab5dd135 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Sat, 10 Aug 2019 23:32:12 +0100 Subject: WAGE: Don't require the data fork for the external sound file --- engines/wage/world.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'engines/wage') 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; -- cgit v1.2.3