aboutsummaryrefslogtreecommitdiff
path: root/engines/simon
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/simon
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/simon')
-rw-r--r--engines/simon/simon.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/simon/simon.cpp b/engines/simon/simon.cpp
index 781915ccb5..26fa3f8025 100644
--- a/engines/simon/simon.cpp
+++ b/engines/simon/simon.cpp
@@ -404,6 +404,13 @@ int SimonEngine::init() {
// Detect game
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 -1;
}