aboutsummaryrefslogtreecommitdiff
path: root/engines/saga/saga.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/saga/saga.cpp')
-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;
}