aboutsummaryrefslogtreecommitdiff
path: root/common/main.cpp
diff options
context:
space:
mode:
authorMax Horn2002-09-27 23:27:14 +0000
committerMax Horn2002-09-27 23:27:14 +0000
commit6024c80f147ce275413332323c2de8db6095c82b (patch)
tree86d42eb89c5866fd6418c867503521cc43643ddb /common/main.cpp
parente674b9e2e23ef1aa21b0be7c682dd77ceb591223 (diff)
downloadscummvm-rg350-6024c80f147ce275413332323c2de8db6095c82b.tar.gz
scummvm-rg350-6024c80f147ce275413332323c2de8db6095c82b.tar.bz2
scummvm-rg350-6024c80f147ce275413332323c2de8db6095c82b.zip
added (currently completly useless) launcher dialog
svn-id: r5024
Diffstat (limited to 'common/main.cpp')
-rw-r--r--common/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/common/main.cpp b/common/main.cpp
index 54e24564c9..207269500a 100644
--- a/common/main.cpp
+++ b/common/main.cpp
@@ -25,6 +25,7 @@
#include "gameDetector.h"
#include "config-file.h"
#include "gui/newgui.h"
+#include "gui/launcher.h"
#include "gui/message.h"
GameDetector detector;
@@ -186,10 +187,16 @@ int main(int argc, char *argv[])
system->set_palette(dummy_palette, 0, 16);
+#if 1
+ extern OSystem *g_system;
+ g_system = system;
+ Dialog *dlg = new LauncherDialog(g_gui);
+#else
const char *message = "This dialog is shown before the\n"
"Engine obejct is even created.\n"
"Wow! Ain't we cool?\n";
Dialog *dlg = new MessageDialog(g_gui, message);
+#endif
dlg->open();
g_gui->runLoop();
delete dlg;