mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-29 14:42:26 +00:00
AGI: Issue GUI warning when there is a missing Hercules font
This commit is contained in:
parent
cdd2d58361
commit
a4befd9a1e
@ -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();
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user