aboutsummaryrefslogtreecommitdiff
path: root/engines/queen/bankman.cpp
diff options
context:
space:
mode:
authorGregory Montoir2007-02-22 12:12:45 +0000
committerGregory Montoir2007-02-22 12:12:45 +0000
commiteec3543c7d14575595327492ceccf0440253d044 (patch)
treecad1cc1cb6d6ed5a8b00c1a7c73bc9e35d0ce7ba /engines/queen/bankman.cpp
parent2c1445056df1bdfc065c33a5a103729e46a60e33 (diff)
downloadscummvm-rg350-eec3543c7d14575595327492ceccf0440253d044.tar.gz
scummvm-rg350-eec3543c7d14575595327492ceccf0440253d044.tar.bz2
scummvm-rg350-eec3543c7d14575595327492ceccf0440253d044.zip
some fixes with resource files handling for Amiga versions
svn-id: r25785
Diffstat (limited to 'engines/queen/bankman.cpp')
-rw-r--r--engines/queen/bankman.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/queen/bankman.cpp b/engines/queen/bankman.cpp
index d9eb020dfe..eb8c2793fa 100644
--- a/engines/queen/bankman.cpp
+++ b/engines/queen/bankman.cpp
@@ -52,6 +52,12 @@ void BankManager::load(const char *bankname, uint32 bankslot) {
}
close(bankslot);
+
+ if (_res->getPlatform() == Common::kPlatformAmiga && !_res->fileExists(bankname)) {
+ debug(9, "BankManager::load() bank '%s' doesn't exist", bankname);
+ return;
+ }
+
bank->data = _res->loadFile(bankname);
if (_res->getPlatform() == Common::kPlatformAmiga) {