From d1d227db831306027ac36b0898f34582dab420d8 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Tue, 22 Apr 2008 20:33:46 +0000 Subject: Fix initialization of Apple //gs sound svn-id: r31659 --- engines/agi/agi.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engines/agi/agi.cpp b/engines/agi/agi.cpp index 58d6eba8cf..81aec3e351 100644 --- a/engines/agi/agi.cpp +++ b/engines/agi/agi.cpp @@ -686,8 +686,7 @@ void AgiEngine::initialize() { // If used platform is Apple IIGS then we must use Apple IIGS sound emulation // because Apple IIGS AGI games use only Apple IIGS specific sound resources. - if (ConfMan.hasKey("platform") && - Common::parsePlatform(ConfMan.get("platform")) == Common::kPlatformApple2GS) { + if (getPlatform() == Common::kPlatformApple2GS) { _soundemu = SOUND_EMU_APPLE2GS; } else { switch (MidiDriver::detectMusicDriver(MDT_PCSPK)) { -- cgit v1.2.3