From 5462d42363bf6f0e84aa0ecbb12b0dc8941acadb Mon Sep 17 00:00:00 2001 From: athrxx Date: Sun, 24 Mar 2019 17:39:55 +0100 Subject: KYRA: (EOB2/Amiga) - improve font file warnings - add warning for wrong font file: The German version of EOB II has a font file with more characters than the English version or the EOB I fonts. Users now get a warning/instruction if they have the wrong file. - add translation support for all AmigaDOS font related warnings/errors --- engines/kyra/engine/eobcommon.cpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'engines/kyra/engine') diff --git a/engines/kyra/engine/eobcommon.cpp b/engines/kyra/engine/eobcommon.cpp index 26a23aac7f..5b7c4aea8e 100644 --- a/engines/kyra/engine/eobcommon.cpp +++ b/engines/kyra/engine/eobcommon.cpp @@ -438,27 +438,20 @@ Common::Error EoBCoreEngine::init() { assert(_debugger); if (_flags.platform == Common::kPlatformAmiga) { - bool showErrorDlg = false; if (_res->exists("EOBF6.FONT")) _screen->loadFont(Screen::FID_6_FNT, "EOBF6.FONT"); else if (_res->exists("FONTS/EOBF6.FONT")) _screen->loadFont(Screen::FID_6_FNT, "FONTS/EOBF6.FONT"); else - showErrorDlg = true; + AmigaDOSFont::errorDialog(0); if (_res->exists("EOBF8.FONT")) _screen->loadFont(Screen::FID_8_FNT, "EOBF8.FONT"); else if (_res->exists("FONTS/EOBF8.FONT")) _screen->loadFont(Screen::FID_8_FNT, "FONTS/EOBF8.FONT"); else - showErrorDlg = true; + AmigaDOSFont::errorDialog(0); - if (showErrorDlg) { - ::GUI::displayErrorDialog("This AMIGA version requires the following font files:\n\nEOBF6.FONT\nEOBF6/6\nEOBF8.FONT\nEOBF8/8\n\n" - "If you used the orginal installer for the installation these files\nshould be located in the AmigaDOS system 'Fonts/' folder.\n" - "Please copy them into the EOB game data directory.\n"); - error("Failed to load font files."); - } } else { _screen->loadFont(Screen::FID_6_FNT, "FONT6.FNT"); _screen->loadFont(Screen::FID_8_FNT, "FONT8.FNT"); -- cgit v1.2.3