diff options
author | Filippos Karapetis | 2014-12-27 00:00:07 +0200 |
---|---|---|
committer | Filippos Karapetis | 2014-12-27 00:00:07 +0200 |
commit | eb46e837969f2f650b5debaa387e63127b83db6c (patch) | |
tree | 46c3e9bc9a88e8a30497178280673ce8189e2937 /engines/zvision/zvision.cpp | |
parent | f9595b11fc2bef08d84a00b81f9b2884f77897b0 (diff) | |
download | scummvm-rg350-eb46e837969f2f650b5debaa387e63127b83db6c.tar.gz scummvm-rg350-eb46e837969f2f650b5debaa387e63127b83db6c.tar.bz2 scummvm-rg350-eb46e837969f2f650b5debaa387e63127b83db6c.zip |
ZVISION: Quit with an error message dialog if no font files are found
Diffstat (limited to 'engines/zvision/zvision.cpp')
-rw-r--r-- | engines/zvision/zvision.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp index 615574bbcd..fe8e129800 100644 --- a/engines/zvision/zvision.cpp +++ b/engines/zvision/zvision.cpp @@ -46,8 +46,8 @@ #include "common/system.h" #include "common/file.h" +#include "gui/message.h" #include "engines/util.h" - #include "audio/mixer.h" namespace ZVision { @@ -230,6 +230,22 @@ Common::Error ZVision::run() { if (ConfMan.hasKey("save_slot")) _saveManager->loadGame(ConfMan.getInt("save_slot")); + // Before starting, make absolutely sure that the user has copied the needed fonts + if (!Common::File::exists("arial.ttf") && !Common::File::exists("FreeSans.ttf")) { + GUI::MessageDialog dialog( + "Before playing this game, you'll need to copy the required " + "fonts in ScummVM's extras directory, or the game directory. " + "On Windows, you'll need the following font files from the Windows " + "font directory: Times New Roman, Century Schoolbook, Garamond, " + "Courier New and Arial. Alternatively, you can download the GNU " + "FreeFont package. You'll need all the fonts from that package, " + "i.e. FreeMono, FreeSans and FreeSerif." + ); + dialog.runModal(); + quitGame(); + return Common::kUnknownError; + } + // Main loop while (!shouldQuit()) { _clock.update(); |