diff --git a/PointerSearcher/Form1.Designer.cs b/PointerSearcher/Form1.Designer.cs index d774fd6..8845dd9 100644 --- a/PointerSearcher/Form1.Designer.cs +++ b/PointerSearcher/Form1.Designer.cs @@ -1995,6 +1995,7 @@ private void InitializeComponent() this.WatchPointAddress_textBox11.Name = "WatchPointAddress_textBox11"; this.WatchPointAddress_textBox11.Size = new System.Drawing.Size(126, 20); this.WatchPointAddress_textBox11.TabIndex = 106; + this.WatchPointAddress_textBox11.Text = "0"; this.WatchPointAddress_textBox11.TextChanged += new System.EventHandler(this.WatchPointAddress_textBox11_TextChanged); // // SetWatchPoint_button diff --git a/PointerSearcher/Form1.cs b/PointerSearcher/Form1.cs index 1ce81a7..c6d21c0 100644 --- a/PointerSearcher/Form1.cs +++ b/PointerSearcher/Form1.cs @@ -922,6 +922,12 @@ private bool showerror( byte[] b ) if ( res == 127 ) errorBox.Text += "InvalidHwBreakpoint"; } + if (module == 345 ) + { + errorBox.Text += " Libnx "; + if ( res == 37 ) + errorBox.Text += "IncompatSysVer"; + } user_abort = false; user_abort2 = false; command_inprogress = false; @@ -980,6 +986,7 @@ private void getstatus_Click( object sender, EventArgs e ) c = s.Receive( k ); long curpid = BitConverter.ToInt64( k, 0 ); curpidBox.Text = Convert.ToString( curpid ); + pid0Box.Text = Convert.ToString( curpid ); while ( s.Available < 4 ) { ; @@ -1479,7 +1486,8 @@ private void attachdmntbutton_Click( object sender, EventArgs e ) byte[] b = new byte[s.Available]; s.Receive( b ); - if ( !showerror( b ) ) + showerror( b ); //ignore error due to no dmnt + //if ( !showerror( b ) ) { attachdmntbutton.BackColor = System.Drawing.Color.LightGreen; getstatus_Click( sender, e ); @@ -2341,21 +2349,21 @@ private void SetWatchPoint_button_Click( Object sender, EventArgs e ) int a = SendMessage( NoexsCommands.SetBreakpoint ); // setup HWBP context - // send id = 5 + // send id = 4 byte[] id = new byte[4]; - id = BitConverter.GetBytes( Convert.ToInt32(textBox8.Text) ); + id = BitConverter.GetBytes((int)4 );// Convert.ToInt32(textBox8.Text) ); // a = SendData( id ); // send addr = 0 byte[] k = new byte[8]; // long k1 = Convert.ToInt64( WatchPointAddress_textBox11.Text ); //get address - //long k1 = 0; - long k1 = Convert.ToInt64( WatchPointAddress_textBox11.Text, 16 ); //get address long heapStart = Convert.ToInt64( dgvDumpTargets.Rows[fileselect].Cells[3].Value.ToString(), 16 ); + long k1 = 0; + // long k1 = Convert.ToInt64( WatchPointAddress_textBox11.Text, 16 ); //get address long heapStart = Convert.ToInt64( dgvDumpTargets.Rows[fileselect].Cells[3].Value.ToString(), 16 ); k = BitConverter.GetBytes( k1 ); a = SendData( k ); // send flag long res = 1; //enabled res |= 0xF << 5; // Match the A64 or A32 instruction at DBGBVR, or context match.n - res |= 6 << 16; // does this matter? + res |= 0 << 16; // does this matter? res |= 3 << 20; // LINKED_CONTEXT_IDR_MATCH(0b0011) long dbgbcr = ( 0x3 << 20 ) | ( 0x0 << 16 ) | ( 0xF << 5 ) | 1; k = BitConverter.GetBytes( (long)dbgbcr ); @@ -2409,7 +2417,7 @@ private void button14_Click( Object sender, EventArgs e ) res |= 2 << 3; //1 = read, 2 = write, 3 = RW res |= 0xFF << 5; // byte select all 8 bytes res |= 4 << 16; // link BP number - res |= 5 << 24; // not using mask == 0 + res |= 0 << 24; // not using mask == 0 k = BitConverter.GetBytes( res ); a = SendData( k );