aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2020-01-09 18:10:11 +0100
committerEugene Sandulenko2020-01-09 18:10:11 +0100
commitb0d31a2afa00c8af9cd42891b82d897c95c1afc3 (patch)
treee742bc0d8d81513294eaafc9caeccb15f0841ed0
parent0869e02c1be101ef582b3b79ded8ebab4f4dbb7c (diff)
downloadscummvm-rg350-b0d31a2afa00c8af9cd42891b82d897c95c1afc3.tar.gz
scummvm-rg350-b0d31a2afa00c8af9cd42891b82d897c95c1afc3.tar.bz2
scummvm-rg350-b0d31a2afa00c8af9cd42891b82d897c95c1afc3.zip
DIRECTOR: Improve error messages
-rw-r--r--engines/director/graphics.cpp2
-rw-r--r--engines/director/resource.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/director/graphics.cpp b/engines/director/graphics.cpp
index b1030d09ce..c552c7c126 100644
--- a/engines/director/graphics.cpp
+++ b/engines/director/graphics.cpp
@@ -311,7 +311,7 @@ void DirectorEngine::testFonts() {
Common::MacResManager *fontFile = new Common::MacResManager();
if (!fontFile->open(fontName))
- error("Could not open %s as a resource fork", fontName.c_str());
+ error("testFonts(): Could not open %s as a resource fork", fontName.c_str());
Common::MacResIDArray fonds = fontFile->getResIDArray(MKTAG('F','O','N','D'));
if (fonds.size() > 0) {
diff --git a/engines/director/resource.cpp b/engines/director/resource.cpp
index f422808b13..2f4f589d72 100644
--- a/engines/director/resource.cpp
+++ b/engines/director/resource.cpp
@@ -64,7 +64,7 @@ Archive *DirectorEngine::openMainArchive(const Common::String movie) {
_mainArchive = createArchive();
if (!_mainArchive->openFile(movie))
- error("Could not open '%s'", movie.c_str());
+ error("openMainArchive(): Could not open '%s'", movie.c_str());
return _mainArchive;
}