示例#1
0
        private void method_6(GClass91 gclass91_0)
        {
            gclass91_0.method_3().GetStream().WriteByte(0);
            this.PingMeasurements.Clear();
            this._lastKeepAlive  = DateTime.Now;
            this._keepAlive      = false;
            this._sentPings      = 0;
            this.IsAuthenticated = false;
            this.method_7();
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;

            if (propertyChanged == null)
            {
                return;
            }
            propertyChanged(this, new PropertyChangedEventArgs("PingMs"));
        }
示例#2
0
 private void method_10(GClass91 gclass91_0, BinaryStream binaryStream_0, byte[] byte_0, int int_0)
 {
     if (this.method_1() == IntPtr.Zero)
     {
         this.method_2(GClass927.GetForegroundWindow());
     }
     if (int_0 == 23 && Encoding.UTF8.GetString(byte_0).Contains("policy"))
     {
         byte[] bytes = Encoding.ASCII.GetBytes("<cross-domain-policy><allow-access-from domain=\"*\" to-ports=\"*\" /></cross-domain-policy>\0");
         gclass91_0.method_3().GetStream().Write(bytes, 0, bytes.Length);
         try
         {
             gclass91_0.method_8();
         }
         catch
         {
         }
         PErkava.concurrentDictionary_2[this.method_1()] = false;
         if (!this.method_9())
         {
             Debug.WriteLine("Patching failed");
             MessageBox.Show("Could not patch the client. This could mean that PErkava doesn't yet support this client version.");
             return;
         }
         PErkava.concurrentDictionary_2[this.method_1()] = true;
         return;
     }
     else
     {
         if (this.bool_3)
         {
             this.bool_3 = false;
             int_0--;
             long position = binaryStream_0.Position;
             binaryStream_0.Position = position + 1L;
         }
         GClass84 <GClass857> gclass = this.gclass84_0;
         if (gclass == null)
         {
             return;
         }
         gclass.method_10(binaryStream_0, byte_0, int_0);
         return;
     }
 }