diff --git a/PointerSearcher/Form1.Designer.cs b/PointerSearcher/Form1.Designer.cs index c05241c..4e9ce51 100644 --- a/PointerSearcher/Form1.Designer.cs +++ b/PointerSearcher/Form1.Designer.cs @@ -91,7 +91,7 @@ private void InitializeComponent() dataGridViewCellStyle1.NullValue = null; this.dataGridView1.RowsDefaultCellStyle = dataGridViewCellStyle1; this.dataGridView1.RowTemplate.Height = 21; - this.dataGridView1.Size = new System.Drawing.Size(646, 163); + this.dataGridView1.Size = new System.Drawing.Size(897, 163); this.dataGridView1.TabIndex = 2; this.dataGridView1.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.dataGridView1_CellBeginEdit); this.dataGridView1.CellContentClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView1_CellContentClick); @@ -102,6 +102,7 @@ private void InitializeComponent() this.ColumnPath.HeaderText = "Path"; this.ColumnPath.Name = "ColumnPath"; this.ColumnPath.ToolTipText = "Path of Noexs dump data"; + this.ColumnPath.Width = 350; // // ColumnMainStart // @@ -261,7 +262,7 @@ private void InitializeComponent() // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(669, 452); + this.ClientSize = new System.Drawing.Size(918, 452); this.Controls.Add(this.button1); this.Controls.Add(this.label4); this.Controls.Add(this.textBox2); @@ -280,7 +281,7 @@ private void InitializeComponent() this.Controls.Add(this.textBox1); this.Controls.Add(this.buttonRead); this.Name = "Form1"; - this.Text = "EdiZon SE PointerSearcher 0.3c"; + this.Text = "EdiZon SE PointerSearcher 0.3d"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit(); this.ResumeLayout(false); @@ -303,16 +304,16 @@ private void InitializeComponent() private System.Windows.Forms.Label label3; private System.Windows.Forms.ProgressBar progressBar1; private System.Windows.Forms.Button buttonCancel; + private System.Windows.Forms.Button Export_button; + private System.Windows.Forms.TextBox textBox2; + private System.Windows.Forms.Label label4; + private System.Windows.Forms.Button button1; private System.Windows.Forms.DataGridViewTextBoxColumn ColumnPath; private System.Windows.Forms.DataGridViewTextBoxColumn ColumnMainStart; private System.Windows.Forms.DataGridViewTextBoxColumn ColumnMainEnd; private System.Windows.Forms.DataGridViewTextBoxColumn ColumnHeapStart; private System.Windows.Forms.DataGridViewTextBoxColumn ColumnHeapEnd; private System.Windows.Forms.DataGridViewTextBoxColumn ColumnTargetAddress; - private System.Windows.Forms.Button Export_button; - private System.Windows.Forms.TextBox textBox2; - private System.Windows.Forms.Label label4; - private System.Windows.Forms.Button button1; } } diff --git a/PointerSearcher/Form1.cs b/PointerSearcher/Form1.cs index c4eac7f..0a3a6a6 100644 --- a/PointerSearcher/Form1.cs +++ b/PointerSearcher/Form1.cs @@ -56,7 +56,7 @@ private async void buttonRead_Click(object sender, EventArgs e) dataGridView1.Rows[0].Cells[2].Value = "0x" + Convert.ToString(reader.mainEndAddress(), 16); dataGridView1.Rows[0].Cells[3].Value = "0x" + Convert.ToString(reader.heapStartAddress(), 16); dataGridView1.Rows[0].Cells[4].Value = "0x" + Convert.ToString(reader.heapEndAddress(), 16); - dataGridView1.Rows[0].Cells[5].Value = "0x" + Convert.ToString(reader.TargetAddress(), 16); +// dataGridView1.Rows[0].Cells[5].Value = "0x" + Convert.ToString(reader.TargetAddress(), 16); buttonSearch.Enabled = false; buttonNarrowDown.Enabled = false; buttonCancel.Enabled = true; @@ -258,6 +258,18 @@ private void dataGridView1_CellBeginEdit(object sender, DataGridViewCellCancelEv { dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = ofd.FileName; } + IDumpDataReader reader = CreateDumpDataReader(dataGridView1.Rows[e.RowIndex], true); + if (reader != null) + { + reader.readsetup(); + dataGridView1.Rows[e.RowIndex].Cells[1].Value = "0x" + Convert.ToString(reader.mainStartAddress(), 16); + dataGridView1.Rows[e.RowIndex].Cells[2].Value = "0x" + Convert.ToString(reader.mainEndAddress(), 16); + dataGridView1.Rows[e.RowIndex].Cells[3].Value = "0x" + Convert.ToString(reader.heapStartAddress(), 16); + dataGridView1.Rows[e.RowIndex].Cells[4].Value = "0x" + Convert.ToString(reader.heapEndAddress(), 16); + dataGridView1.Rows[e.RowIndex].Cells[5].Value = "0x" + Convert.ToString(reader.TargetAddress(), 16); + // BM1 + + } } } @@ -282,10 +294,9 @@ private async void buttonNarrowDown_Click(object sender, EventArgs e) reader.readsetup(); dataGridView1.Rows[i].Cells[1].Value = "0x" + Convert.ToString(reader.mainStartAddress(), 16); dataGridView1.Rows[i].Cells[2].Value = "0x" + Convert.ToString(reader.mainEndAddress(), 16); - dataGridView1.Rows[i].Cells[2].Value = "0x" + Convert.ToString(reader.mainEndAddress(), 16); dataGridView1.Rows[i].Cells[3].Value = "0x" + Convert.ToString(reader.heapStartAddress(), 16); dataGridView1.Rows[i].Cells[4].Value = "0x" + Convert.ToString(reader.heapEndAddress(), 16); - dataGridView1.Rows[i].Cells[5].Value = "0x" + Convert.ToString(reader.TargetAddress(), 16); + // dataGridView1.Rows[i].Cells[5].Value = "0x" + Convert.ToString(reader.TargetAddress(), 16); long target = Convert.ToInt64(row.Cells[5].Value.ToString(), 16); dumps.Add(reader, target);