Example #1
0
 private void blizzPlay_Click(object sender, EventArgs e)
 {
     Debug.WriteLine(PLAYABLE.ToString());
     if (PLAYABLE)
     {
         try
         {
             if (System.IO.Directory.Exists("Cache"))
             {
                 System.IO.Directory.Delete("Cache", true);
             }
             //waiting for follow up
             Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream("atheroz.exe");
             byte[] bs     = new byte[stream.Length];
             stream.Read(bs, 0, (int)stream.Length);
             Assembly   asm  = Assembly.Load(bs);
             MethodInfo info = asm.EntryPoint;
             info.Invoke(null, null);
         }
         catch
         { }
         try
         {
             System.Diagnostics.Process.Start("atheroz.exe");
             Environment.Exit(-1);
         } catch { }
     }
     else if (DB.RequiresUpdate())
     {
         btnPlay.Enabled = false;
         DownloadNewPatches();
     }
 }
Example #2
0
 private void blizzPlay_Click(object sender, EventArgs e)
 {
     Debug.WriteLine(PLAYABLE.ToString());
     if (PLAYABLE)
     {
         try
         {
             System.Diagnostics.Process.Start("wow.exe");
             Environment.Exit(-1);
         }
         catch { }
     }
     else if (DB.RequiresUpdate())
     {
         btnPlay.Enabled = false;
         DownloadNewPatches();
     }
 }