aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorEugene Sandulenko2006-04-25 23:31:11 +0000
committerEugene Sandulenko2006-04-25 23:31:11 +0000
commitd53348797fe32ce9685a97ebca374bd08e37ea7d (patch)
treea62b59264c4a9687b3680aed06dfabb1663c891a /engines/saga
parentbf53520130bbde8a1fb85bebae487d8b489d8f42 (diff)
downloadscummvm-rg350-d53348797fe32ce9685a97ebca374bd08e37ea7d.tar.gz
scummvm-rg350-d53348797fe32ce9685a97ebca374bd08e37ea7d.tar.bz2
scummvm-rg350-d53348797fe32ce9685a97ebca374bd08e37ea7d.zip
Show GUI message when game data is not found.
svn-id: r22164
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/saga.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp
index 2a8f0e1802..cec8e3a939 100644
--- a/engines/saga/saga.cpp
+++ b/engines/saga/saga.cpp
@@ -53,6 +53,8 @@
#include "saga/objectmap.h"
#include "saga/resnames.h"
+#include "gui/message.h"
+
namespace Saga {
#define MAX_TIME_DELTA 100
@@ -158,10 +160,15 @@ int SagaEngine::init() {
_resource = new Resource(this);
- // Process command line
-
// Detect game and open resource files
if (!initGame()) {
+ _system->beginGFXTransaction();
+ initCommonGFX(false);
+ _system->initSize(320, 200, 2);
+ _system->endGFXTransaction();
+ GUI::MessageDialog dialog("No valid games were found in the specified directory.");
+ dialog.runModal();
+
return FAILURE;
}