Example #1
0
 private void AttachButton_Click(object sender, EventArgs e)
 {
     if (this.ProcessComboBox.Text.Contains(":"))
     {
         string[] strArray = this.ProcessComboBox.Text.Split(':');
         int      int32    = Convert.ToInt32(strArray[0], 10);
         this.ps4.AttachDebugger(int32, new PS4DBG.DebuggerInterruptCallback(this.DebuggerInterruptCallback));
         this.attachpid = int32;
         this.mapview   = new MemoryMapView(ps4.GetProcessInfo(attachpid), this.ps4.GetProcessMaps(attachpid));
         this.ps4.Notify(222, "attached to " + strArray[1]);
         this.MainPanel.Enabled    = true;
         this.AttachButton.Enabled = false;
         this.DetachButton.Enabled = true;
     }
     else
     {
         int num = (int)MessageBox.Show("Please select a process in the list! Or press refresh then select!",
                                        "Debug Watch", MessageBoxButtons.OK, MessageBoxIcon.Hand);
     }
 }
Example #2
0
 private void MemoryMapButton_Click(object sender, EventArgs e)
 {
     this.mapview = new MemoryMapView(this.ps4.GetProcessInfo(this.attachpid), ps4.GetProcessMaps(attachpid));
     int num = (int)this.mapview.ShowDialog();
 }