From 364d5d35c26712743ce74dd10aabc664dcceff9e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Tue, 18 Dec 2018 19:35:09 -0800 Subject: GLK: More descriptive font loading error messages --- engines/glk/screen.cpp | 4 ++-- 1 file 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); } -- cgit v1.2.3