[Scummvm-cvs-logs] scummvm master -> eb46e837969f2f650b5debaa387e63127b83db6c
bluegr
bluegr at gmail.com
Fri Dec 26 23:01:17 CET 2014
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
eb46e83796 ZVISION: Quit with an error message dialog if no font files are found
Commit: eb46e837969f2f650b5debaa387e63127b83db6c
https://github.com/scummvm/scummvm/commit/eb46e837969f2f650b5debaa387e63127b83db6c
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2014-12-27T00:00:07+02:00
Commit Message:
ZVISION: Quit with an error message dialog if no font files are found
Changed paths:
engines/zvision/zvision.cpp
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp
index 615574b..fe8e129 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();
More information about the Scummvm-git-logs
mailing list