aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-17 18:24:14 +0000
committerJohannes Schickel2008-05-17 18:24:14 +0000
commit2e14d05caa043848f7d74f53117bce284c325b12 (patch)
treec2cff8666687d24ba3ed71fe4daad84ea8fc33a2
parentbf35e95049cc5e89c59815e2a1a3f32dd3153f43 (diff)
downloadscummvm-rg350-2e14d05caa043848f7d74f53117bce284c325b12.tar.gz
scummvm-rg350-2e14d05caa043848f7d74f53117bce284c325b12.tar.bz2
scummvm-rg350-2e14d05caa043848f7d74f53117bce284c325b12.zip
Added default search path "hof_cd"/"malcolm" directory for HoF/Kyra3.
svn-id: r32156
-rw-r--r--engines/kyra/resource.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp
index 9d34c669a1..635d00f993 100644
--- a/engines/kyra/resource.cpp
+++ b/engines/kyra/resource.cpp
@@ -73,12 +73,22 @@ bool Resource::reset() {
if (_vm->gameFlags().isDemo && !_vm->gameFlags().isTalkie) {
loadPakFile("GENERAL.PAK");
} else {
+ if (_vm->gameFlags().isTalkie) {
+ // Add default file directories
+ Common::File::addDefaultDirectory(ConfMan.get("path") + "hof_cd");
+ Common::File::addDefaultDirectory(ConfMan.get("path") + "HOF_CD");
+ }
+
loadPakFile("INTROGEN.PAK");
loadPakFile("OTHER.PAK");
}
return true;
} else if (_vm->game() == GI_KYRA3) {
+ // Add default file directories
+ Common::File::addDefaultDirectory(ConfMan.get("path") + "malcolm");
+ Common::File::addDefaultDirectory(ConfMan.get("path") + "MALCOLM");
+
loadPakFile("WESTWOOD.001");
loadFileList("FILEDATA.FDT");