AGI: Issue GUI warning when there is a missing Hercules font

This commit is contained in:
Zvika Haramaty 2020-07-30 15:15:12 +03:00 committed by Eugene Sandulenko
parent cdd2d58361
commit a4befd9a1e

View File

@ -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();
};
}
}