aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra_hof.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-08-05 12:13:01 +0000
committerJohannes Schickel2008-08-05 12:13:01 +0000
commite2e0b1393b1dc73850d216c2527e40b4b87e38ef (patch)
tree38cae4d1f0d23818b6e1df4fbbcf7167919214ed /engines/kyra/kyra_hof.cpp
parenta9bef1051ec7471a277a2f4300c7165fc6ace4a9 (diff)
downloadscummvm-rg350-e2e0b1393b1dc73850d216c2527e40b4b87e38ef.tar.gz
scummvm-rg350-e2e0b1393b1dc73850d216c2527e40b4b87e38ef.tar.bz2
scummvm-rg350-e2e0b1393b1dc73850d216c2527e40b4b87e38ef.zip
Output errors on (some) missing files.
svn-id: r33635
Diffstat (limited to 'engines/kyra/kyra_hof.cpp')
-rw-r--r--engines/kyra/kyra_hof.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/kyra/kyra_hof.cpp b/engines/kyra/kyra_hof.cpp
index 27d905435f..08e13a54af 100644
--- a/engines/kyra/kyra_hof.cpp
+++ b/engines/kyra/kyra_hof.cpp
@@ -295,10 +295,12 @@ int KyraEngine_HoF::go() {
if (_menuChoice != 4) {
// load just the pak files needed for ingame
_res->loadPakFile(StaticResource::staticDataFilename());
- if (_flags.platform == Common::kPlatformPC && _flags.isTalkie)
- _res->loadFileList("FILEDATA.FDT");
- else
+ if (_flags.platform == Common::kPlatformPC && _flags.isTalkie) {
+ if (!_res->loadFileList("FILEDATA.FDT"))
+ error("couldn't load 'FILEDATA.FDT'");
+ } else {
_res->loadFileList(_ingamePakList, _ingamePakListSize);
+ }
if (_flags.platform == Common::kPlatformPC98)
_res->loadPakFile("AUDIO.PAK");