aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/engine
diff options
context:
space:
mode:
authorathrxx2019-03-24 17:39:55 +0100
committerathrxx2019-04-13 18:54:59 +0200
commit5462d42363bf6f0e84aa0ecbb12b0dc8941acadb (patch)
tree7b136b23b4fc490098b35b95ee4edf8f166ce05f /engines/kyra/engine
parent463cf48e2a16e0056922b06a741ee477e7078de2 (diff)
downloadscummvm-rg350-5462d42363bf6f0e84aa0ecbb12b0dc8941acadb.tar.gz
scummvm-rg350-5462d42363bf6f0e84aa0ecbb12b0dc8941acadb.tar.bz2
scummvm-rg350-5462d42363bf6f0e84aa0ecbb12b0dc8941acadb.zip
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
Diffstat (limited to 'engines/kyra/engine')
-rw-r--r--engines/kyra/engine/eobcommon.cpp11
1 files changed, 2 insertions, 9 deletions
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");