Example #1
0
 private void _BP_CheckedChanged(object sender, EventArgs e)
 {
     if (address != 0)
     {
         aFresh.Checked         = !_BP.Checked;
         AddressTextBox.Enabled = !_BP.Checked;
         dasAddress             = AddressTextBox.Text;
         if (__bp.Checked)
         {
             PS4.ChangeBreakpoint(0, Convert.ToInt16(_BP.Checked), _BP.Checked ? address : 0ul);
         }
         if (_wp.Checked)
         {
             var _l  = Enum.GetValues(typeof(PS4DBG.WATCHPT_LENGTH)).Cast <PS4DBG.WATCHPT_LENGTH>().ToArray();
             var _bt = Enum.GetValues(typeof(PS4DBG.WATCHPT_BREAKTYPE)).Cast <PS4DBG.WATCHPT_BREAKTYPE>().ToArray();
             PS4.ChangeWatchpoint(0, 1, _l[WPLength.SelectedIndex], _bt[WPType.SelectedIndex], _BP.Checked ? address : 0ul);
         }
         if (!_BP.Checked)
         {
             for (int i = 0; i < _regValue.Length; i++)
             {
                 _regValue[i] = 0ul;
             }
             eView.Checked = false;
         }
     }
 }