aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/agi.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agi/agi.cpp')
-rw-r--r--engines/agi/agi.cpp3
1 files changed, 1 insertions, 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)) {