private void CheckIfFinished(object state)
 {
     if (!LocalVars.ReadyToLaunch)
     {
         System.Threading.Timer timer = new System.Threading.Timer(new TimerCallback(CheckIfFinished), null, 1, 0);
     }
     else
     {
         Visible = true;
         if (GlobalVars.UserConfiguration.DiscordPresence)
         {
             label1.Text = "Starting Discord Rich Presence...";
             StartDiscord();
         }
         label1.Text = "Launching Game...";
         LocalFuncs.SetupURIValues();
         StartGame();
     }
 }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     GlobalFuncs.LogPrint("Attempting to install URI.");
     LocalFuncs.RegisterURI(this);
     Close();
 }
Exemple #3
0
 private void button1_Click(object sender, EventArgs e)
 {
     LocalFuncs.RegisterURI(this);
     Close();
 }