private void InstallPlutonium()
        {
            PlutoniumSetup.InstallConfigComplete += OnPlutoniumInstallConfigComplete;
            PlutoniumSetup.InstallComplete       += OnPlutoniumInstallComplete;

            Write(Properties.Resources.PlutoInstall_CreatingConfigFile);
            PlutoniumSetup.Install(BO2Directory);
        }
        private void SetupShortcuts()
        {
            Write(Properties.Resources.CreatingShortcuts);
            PlutoniumSetup.CreateShortcuts(BO2Directory, enableStartShortcut, enableDesktopShortcut);
            Write(Properties.Resources.ShortcutsCreated);

            ProcessInstallStage(InstallStage.InstallPlutonium);
        }
        private void SetupReShade()
        {
            recordedPercentages = new HashSet <int>();

            PlutoniumSetup.DownloadProgressChangedEvent += OnDownloadProgressChanged;
            PlutoniumSetup.DownloadCompleteEvent        += OnReShadeDownloadComplete;

            Write(Properties.Resources.PlutoInstall_DownloadingReShade);

            bool downloadSuccess = PlutoniumSetup.DownloadReShade();

            if (!downloadSuccess)
            {
                Write(Properties.Resources.PlutoInstall_ReShadeDownloadFailed);
            }
        }
        private void DownloadPlutonium()
        {
            recordedPercentages = new HashSet <int>();

            Write($"Downloading file from '{PlutoniumSetup.PlutoniumUri}' to '{BO2Directory}'...");
            PlutoniumSetup.DownloadProgressChangedEvent += OnDownloadProgressChanged;
            PlutoniumSetup.DownloadCompleteEvent        += OnPlutoniumDownloadComplete;

            bool downloadSuceeded = PlutoniumSetup.Download(BO2Directory);

            if (!downloadSuceeded)
            {
                Error();
            }

            PlutoniumSetup.DownloadProgressChangedEvent -= OnDownloadProgressChanged;
        }
示例#5
0
 private void PlayButton_Click(object sender, RoutedEventArgs e)
 {
     PlutoniumSetup.StartPlutoniumLauncher();
     Application.Current.Shutdown();
 }