From 2e14d05caa043848f7d74f53117bce284c325b12 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sat, 17 May 2008 18:24:14 +0000 Subject: Added default search path "hof_cd"/"malcolm" directory for HoF/Kyra3. svn-id: r32156 --- engines/kyra/resource.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) 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"); -- cgit v1.2.3