aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-03-30 10:58:57 +0200
committerEugene Sandulenko2016-03-30 10:58:57 +0200
commit17a8f0baddec3e0c3057a86c9f7e7d70c52e6b8e (patch)
tree689ac8c4c2993ceae563c5dd2171f2b8ec87483c
parent0db4c879f2d5fa1c7aad2d478f0c0af0a7b2b042 (diff)
downloadscummvm-rg350-17a8f0baddec3e0c3057a86c9f7e7d70c52e6b8e.tar.gz
scummvm-rg350-17a8f0baddec3e0c3057a86c9f7e7d70c52e6b8e.tar.bz2
scummvm-rg350-17a8f0baddec3e0c3057a86c9f7e7d70c52e6b8e.zip
UPDATES: Plug updates dialog in.
Launched when ScummVM is run first time with updates feature.
-rw-r--r--base/main.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp
index ff441df49c..587e32804f 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -75,6 +75,9 @@
#include "gui/launcher.h"
#endif
+#ifdef USE_UPDATES
+#include "gui/updates-dialog.h"
+#endif
static bool launcherDialog() {
@@ -458,6 +461,13 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
// Now as the event manager is created, setup the keymapper
setupKeymapper(system);
+#ifdef USE_UPDATES
+ if (!ConfMan.hasKey("updates_check")) {
+ GUI::UpdatesDialog dlg;
+ dlg.runModal();
+ }
+#endif
+
// Unless a game was specified, show the launcher dialog
if (0 == ConfMan.getActiveDomain())
launcherDialog();