aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/saga.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2007-12-23 02:33:58 +0000
committerFilippos Karapetis2007-12-23 02:33:58 +0000
commit5b74b676ce35172cae45278a8e6008c0858bf4d4 (patch)
tree7af869a81bb2538ec02f5f16c5f3350203739759 /engines/saga/saga.cpp
parent275c91be33968f17bf1ad2cad2cccdece598ce98 (diff)
downloadscummvm-rg350-5b74b676ce35172cae45278a8e6008c0858bf4d4.tar.gz
scummvm-rg350-5b74b676ce35172cae45278a8e6008c0858bf4d4.tar.bz2
scummvm-rg350-5b74b676ce35172cae45278a8e6008c0858bf4d4.zip
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
Diffstat (limited to 'engines/saga/saga.cpp')
-rw-r--r--engines/saga/saga.cpp16
1 files changed, 9 insertions, 7 deletions
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