aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2009-12-30 15:24:16 +0000
committerFilippos Karapetis2009-12-30 15:24:16 +0000
commited41d797efc641c660247bc09d055ce8adbcbda4 (patch)
tree3c909f6ce72be96084cd6acfe19bb649e836ca4d
parent6305dde687a13bce1358b8fbade3a55e2301adca (diff)
downloadscummvm-rg350-ed41d797efc641c660247bc09d055ce8adbcbda4.tar.gz
scummvm-rg350-ed41d797efc641c660247bc09d055ce8adbcbda4.tar.bz2
scummvm-rg350-ed41d797efc641c660247bc09d055ce8adbcbda4.zip
Wrapped some IHNM-specific code around appropriate ifdef's
svn-id: r46749
-rw-r--r--engines/saga/resource.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/saga/resource.cpp b/engines/saga/resource.cpp
index 7ae8599a93..cf7474adc1 100644
--- a/engines/saga/resource.cpp
+++ b/engines/saga/resource.cpp
@@ -315,16 +315,20 @@ bool Resource::createContexts() {
}
if (_voicesFileName[0][0] == 0) {
+#ifdef ENABLE_IHNM
if (_vm->getGameId() == GID_IHNM && _vm->isMacResources()) {
// The Macintosh version of IHNM has no voices.res, and it has all
// its voice files in subdirectories, so don't do anything here
_contexts.push_back(new VoiceResourceContext_RES());
} else {
+#endif
warning("No voice file found, voices will be disabled");
_vm->_voicesEnabled = false;
_vm->_subtitlesEnabled = true;
_vm->_voiceFilesExist = false;
+#ifdef ENABLE_IHNM
}
+#endif
}
//// Detect and add music files /////////////////////////////////////////