Skip to content

Commit

Permalink
UPDATES: Plug updates dialog in.
Browse files Browse the repository at this point in the history
Launched when ScummVM is run first time with updates feature.
  • Loading branch information
sev- committed Apr 3, 2016
1 parent fa6e465 commit f0ff2db
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions base/main.cpp
Expand Up @@ -75,6 +75,9 @@
#include "gui/launcher.h"
#endif

#ifdef USE_UPDATES
#include "gui/updates-dialog.h"
#endif

static bool launcherDialog() {

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit f0ff2db

Please sign in to comment.