diff options
author | athrxx | 2019-03-24 17:39:55 +0100 |
---|---|---|
committer | athrxx | 2019-04-13 18:54:59 +0200 |
commit | 5462d42363bf6f0e84aa0ecbb12b0dc8941acadb (patch) | |
tree | 7b136b23b4fc490098b35b95ee4edf8f166ce05f /engines/kyra/graphics/screen.h | |
parent | 463cf48e2a16e0056922b06a741ee477e7078de2 (diff) | |
download | scummvm-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/graphics/screen.h')
-rw-r--r-- | engines/kyra/graphics/screen.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/kyra/graphics/screen.h b/engines/kyra/graphics/screen.h index 5a746a0956..b6706cd14f 100644 --- a/engines/kyra/graphics/screen.h +++ b/engines/kyra/graphics/screen.h @@ -187,7 +187,7 @@ private: class Resource; class AmigaDOSFont : public Font { public: - AmigaDOSFont(Resource *res); + AmigaDOSFont(Resource *res, bool needsLocalizedFont = false); ~AmigaDOSFont() { unload(); } bool load(Common::SeekableReadStream &file); @@ -197,6 +197,8 @@ public: void setColorMap(const uint8 *src) { _colorMap = src; } void drawChar(uint16 c, byte *dst, int pitch, int) const; + static void errorDialog(int index); + private: void unload(); @@ -242,8 +244,10 @@ private: uint16 _selectedElement; const uint8 *_colorMap; - const uint16 _maxPathLen; + const bool _needsLocalizedFont; + + static uint8 _errorDialogDisplayed; Resource *_res; }; |