コード例 #1
0
ファイル: GClass873.cs プロジェクト: sembol2005/DOPE-Source
    private void timer_0_Tick(object sender, EventArgs e)
    {
        IntPtr    foregroundWindow = GClass876.GetForegroundWindow();
        GClass881 proxy            = null;

        PErkava.concurrentDictionary_0.TryGetValue(foregroundWindow, out proxy);
        this.Proxy = proxy;
    }
コード例 #2
0
ファイル: GClass881.cs プロジェクト: sembol2005/DOPE-Source
    public bool method_8()
    {
        IntPtr foregroundWindow = GClass876.GetForegroundWindow();

        this.method_2(foregroundWindow);
        this.Status = "Getting ready.";
        PErkava.concurrentDictionary_0[foregroundWindow] = this;
        try
        {
            bool flag = GClass875.smethod_1(foregroundWindow, new Action <int>(this.method_20));
            this.Status = "Patching result: " + (flag ? "success" : "FAIL");
            return(flag);
        }
        catch (Exception ex)
        {
            MessageBox.Show(ex.Message + ex.StackTrace + ex.ToString());
        }
        return(false);
    }
コード例 #3
0
ファイル: GClass881.cs プロジェクト: sembol2005/DOPE-Source
 private void method_9(GClass91 gclass91_1, BinaryStream binaryStream_0, byte[] byte_0, int int_0)
 {
     if (this.method_1() == IntPtr.Zero)
     {
         this.method_2(GClass876.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_1.method_3().GetStream().Write(bytes, 0, bytes.Length);
         try
         {
             gclass91_1.method_8();
         }
         catch
         {
         }
         PErkava.concurrentDictionary_2[this.method_1()] = false;
         if (!this.method_8())
         {
             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
     {
         GClass84 <GClass804 <GInterface7> > gclass = this.gclass84_0;
         if (gclass == null)
         {
             return;
         }
         gclass.method_12(binaryStream_0, byte_0, int_0);
         return;
     }
 }