aboutsummaryrefslogtreecommitdiff
path: root/base/main.cpp
diff options
context:
space:
mode:
authorMarcus Comstedt2004-08-26 21:51:26 +0000
committerMarcus Comstedt2004-08-26 21:51:26 +0000
commit77026760c8f76dbd28c81f1804c5c172ff70e2b8 (patch)
tree55a481392e1a410760a52d241402cbd4f2585e1e /base/main.cpp
parentfa89ee800aafcfd59d9e64ed27fbbabf9372dd11 (diff)
downloadscummvm-rg350-77026760c8f76dbd28c81f1804c5c172ff70e2b8.tar.gz
scummvm-rg350-77026760c8f76dbd28c81f1804c5c172ff70e2b8.tar.bz2
scummvm-rg350-77026760c8f76dbd28c81f1804c5c172ff70e2b8.zip
Run the DC launcher from inside the regular main() function.
svn-id: r14787
Diffstat (limited to 'base/main.cpp')
-rw-r--r--base/main.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 10c914991e..749d62a5fa 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -45,6 +45,10 @@
#include "backends/wince/CELauncherDialog.h"
#endif
+#ifdef __DC__
+#include "backends/dc/DCLauncherDialog.h"
+#endif
+
/*
* Version string and build date string. These can be used by anything that
* wants to display this information to the user (e.g. about dialog).
@@ -214,10 +218,12 @@ static int launcherDialog(GameDetector &detector, OSystem *system) {
system->setPalette(dummy_palette, 0, 16);
-#ifndef _WIN32_WCE
- GUI::LauncherDialog dlg(detector);
-#else
+#if defined(_WIN32_WCE)
CELauncherDialog dlg(detector);
+#elif defined(__DC__)
+ DCLauncherDialog dlg(detector);
+#else
+ GUI::LauncherDialog dlg(detector);
#endif
return dlg.runModal();
}