예제 #1
0
        private static async void UpdateChecks()
        {
            // If we have a launcher installation, check for a Firefall update.
            if (MeldiiSettings.Self.CheckForPatchs && Statics.IsFirefallInstallLauncher())
            {
                await FirefallUpdate();
            }

            // Check for updater and remove it if it is there.
            if (File.Exists(Statics.UpdaterName))
            {
                File.Delete(Statics.UpdaterName);
            }

            // See if there is a Meldii update.
            if (IsUpdateAvailable())
            {
                await App.Current.Dispatcher.BeginInvoke((Action) delegate()
                {
                    MainWindow.UpdatePrompt();
                });
            }
        }