[Scummvm-git-logs] scummvm master -> a4befd9a1e714a7fe3094c79df0416663936ffc7
sev-
sev at scummvm.org
Thu Aug 20 22:08:23 UTC 2020
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
a4befd9a1e AGI: Issue GUI warning when there is a missing Hercules font
Commit: a4befd9a1e714a7fe3094c79df0416663936ffc7
https://github.com/scummvm/scummvm/commit/a4befd9a1e714a7fe3094c79df0416663936ffc7
Author: Zvika Haramaty (haramaty.zvika at gmail.com)
Date: 2020-08-21T00:08:19+02:00
Commit Message:
AGI: Issue GUI warning when there is a missing Hercules font
Changed paths:
engines/agi/font.cpp
diff --git a/engines/agi/font.cpp b/engines/agi/font.cpp
index f9605e4a3d..b0e460ab26 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();
+ };
+
}
}
More information about the Scummvm-git-logs
mailing list