aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2018-12-18 19:35:09 -0800
committerPaul Gilbert2018-12-18 19:35:09 -0800
commit364d5d35c26712743ce74dd10aabc664dcceff9e (patch)
treeceababb8e42f3bf78d97d674d091d7f6fbd15f6e
parent7e1361e2c28d24c8a6dd59dc2bbc0204c1692116 (diff)
downloadscummvm-rg350-364d5d35c26712743ce74dd10aabc664dcceff9e.tar.gz
scummvm-rg350-364d5d35c26712743ce74dd10aabc664dcceff9e.tar.bz2
scummvm-rg350-364d5d35c26712743ce74dd10aabc664dcceff9e.zip
GLK: More descriptive font loading error messages
-rw-r--r--engines/glk/screen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/glk/screen.cpp b/engines/glk/screen.cpp
index 2891db1490..b95de708c3 100644
--- a/engines/glk/screen.cpp
+++ b/engines/glk/screen.cpp
@@ -40,7 +40,7 @@ Screen::~Screen() {
void Screen::initialize() {
if (!loadFonts())
- error("Could not load data file");
+ error("Could not load fonts.dat");
// TODO: See if there's any better way for getting the leading and baseline
Common::Rect r1 = _fonts[7]->getBoundingBox('o');
@@ -154,7 +154,7 @@ const Graphics::Font *Screen::loadFont(FACES face, Common::Archive *archive, dou
};
if (!f.open(FILENAMES[face], *archive))
- error("Could not load font");
+ error("Could not load %s from fonts file", FILENAMES[face]);
return Graphics::loadTTFFont(f, (int)size, Graphics::kTTFSizeModeCharacter);
}