From e69532bff2f9d6e864f1183fd3db5008fc836097 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 20 Mar 2008 11:55:52 +0000 Subject: Fixed loading of 'filedata.fdt' in HoF demo from Malcolm's Revenge CD. svn-id: r31202 --- engines/kyra/resource.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp index 11c48e04ed..d40ff0bae4 100644 --- a/engines/kyra/resource.cpp +++ b/engines/kyra/resource.cpp @@ -215,7 +215,12 @@ bool Resource::loadFileList(const Common::String &filedata) { filename.toUppercase(); if (filename.hasSuffix(".PAK")) { - if (!loadPakFile(filename)) { + if (!isAccessable(filename) && _vm->gameFlags().isDemo) { + // the demo version supplied with Kyra3 does not + // contain all pak files listed in filedata.fdt + // so we don't do anything here if they are non + // existant. + else if (!loadPakFile(filename)) { error("couldn't load file '%s'", filename.c_str()); return false; } -- cgit v1.2.3