From 5b74b676ce35172cae45278a8e6008c0858bf4d4 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 23 Dec 2007 02:33:58 +0000 Subject: Disable voices when voice files do not exist (like the original interpreter does), instead of exiting with an error. This is necessary for devices with little space svn-id: r29956 --- engines/saga/saga.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'engines/saga/saga.cpp') diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index 567491b481..e2e44d5c0e 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -224,15 +224,17 @@ int SagaEngine::init() { _gfx->initPalette(); - if (getGameType() == GType_IHNM) { - if (!ConfMan.hasKey("voices")) { - _voicesEnabled = true; - ConfMan.setBool("voices", true); + if (_voiceFilesExist) { + if (getGameType() == GType_IHNM) { + if (!ConfMan.hasKey("voices")) { + _voicesEnabled = true; + ConfMan.setBool("voices", true); + } else { + _voicesEnabled = ConfMan.getBool("voices"); + } } else { - _voicesEnabled = ConfMan.getBool("voices"); + _voicesEnabled = true; } - } else { - _voicesEnabled = true; } // FIXME: This is the ugly way of reducing redraw overhead. It works -- cgit v1.2.3