From a4befd9a1e714a7fe3094c79df0416663936ffc7 Mon Sep 17 00:00:00 2001 From: Zvika Haramaty Date: Thu, 30 Jul 2020 15:15:12 +0300 Subject: [PATCH] AGI: Issue GUI warning when there is a missing Hercules font --- engines/agi/font.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engines/agi/font.cpp b/engines/agi/font.cpp index f9605e4a3d9..b0e460ab261 100644 --- a/engines/agi/font.cpp +++ b/engines/agi/font.cpp @@ -21,6 +21,10 @@ */ #include "common/config-manager.h" +#include "common/translation.h" +#include "gui/gui-manager.h" +#include "gui/message.h" + #include "agi/agi.h" #include "agi/font.h" #include "agi/text.h" @@ -1290,6 +1294,11 @@ void GfxFont::loadFontHercules() { } else { // Continue, if no file was not found warning("Could not open/use file 'hgc_font' for Hercules hires font"); + if (GUI::GuiManager::hasInstance()) { + GUI::MessageDialog dialog(_("Could not open/use file 'hgc_font' for Hercules hires font.\nIf you have such file in other AGI (Sierra) game, you can copy it to the game directory")); + dialog.runModal(); + }; + } }