diff options
author | Eugene Sandulenko | 2016-03-30 10:58:57 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-03-30 10:58:57 +0200 |
commit | 17a8f0baddec3e0c3057a86c9f7e7d70c52e6b8e (patch) | |
tree | 689ac8c4c2993ceae563c5dd2171f2b8ec87483c /base | |
parent | 0db4c879f2d5fa1c7aad2d478f0c0af0a7b2b042 (diff) | |
download | scummvm-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.
Diffstat (limited to 'base')
-rw-r--r-- | base/main.cpp | 10 |
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(); |