コード例 #1
0
        public void SetLauncherReady()
        {
            updateLabelText.Text = "";
            if (!File.Exists(Constants.GAME_EXECUTABLE_PATH))
            {
                MessageBox.Show("Couldn't make a connection to the game server. Please try again later or inform the developer if the issue persists.", "Fatal error");
                return;
            }

            currentVersionLabel.Text = OnlineVersion.ToString();
            Properties.Settings.Default.VersionText = OnlineVersion.ToString();
            Properties.Settings.Default.Save();
            Console.WriteLine("Updated version. Now running on version: " + LocalVersion);
            IsReady = true;

            if (Constants.AUTOMATICALLY_LAUNCH_GAME_AFTER_UPDATING)
            {
                LaunchGame();
            }

            try {
                File.Delete(Constants.ZIP_PATH);
            } catch {
                MessageBox.Show("Couldn't delete the downloaded zip file after extraction.");
            }
        }
コード例 #2
0
 public override string GetDisplayName()
 {
     return("LAV Filters" + (OnlineVersion != null ? " " + OnlineVersion.ToString() : ""));
 }