diff options
author | Travis Howell | 2008-07-28 06:18:39 +0000 |
---|---|---|
committer | Travis Howell | 2008-07-28 06:18:39 +0000 |
commit | 258f1e8fe630e4323c93c03bbf993307ef652fb5 (patch) | |
tree | 1e0ac1a6bc8f7abe7034e919fa0232f878f3e0c9 /engines | |
parent | df50b8ee68fd24afcdf4c882d653fbd9d78a3e0e (diff) | |
download | scummvm-rg350-258f1e8fe630e4323c93c03bbf993307ef652fb5.tar.gz scummvm-rg350-258f1e8fe630e4323c93c03bbf993307ef652fb5.tar.bz2 scummvm-rg350-258f1e8fe630e4323c93c03bbf993307ef652fb5.zip |
There is no mask or path directories for part0 of BRA (Amiga), so always check whether they exist.
svn-id: r33356
Diffstat (limited to 'engines')
-rw-r--r-- | engines/parallaction/disk_br.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/parallaction/disk_br.cpp b/engines/parallaction/disk_br.cpp index e354c1cecc..8f2fabf926 100644 --- a/engines/parallaction/disk_br.cpp +++ b/engines/parallaction/disk_br.cpp @@ -558,8 +558,8 @@ void AmigaDisk_br::loadScenery(BackgroundInfo& info, const char* name, const cha stream.close(); } - if (mask) { - filepath = Common::String(name) + ".msk"; + if (mask && _mskDir.exists()) { + filepath = Common::String(mask) + ".msk"; node = _mskDir.getChild(filepath); if (!node.exists()) { errorFileNotFound(_mskDir, filepath); @@ -569,8 +569,8 @@ void AmigaDisk_br::loadScenery(BackgroundInfo& info, const char* name, const cha stream.close(); } - if (path) { - filepath = Common::String(name) + ".pth"; + if (path && _pthDir.exists()) { + filepath = Common::String(path) + ".pth"; node = _pthDir.getChild(filepath); if (!node.exists()) { errorFileNotFound(_pthDir, filepath); |