Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace ccapidebugger
- * °°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
- {
- /* PROOF: http://adf.ly/rt7QN °PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°
- * °°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°°PwN3D°°°°°°°°°°
- ____ __ __ __ __ __ ____
- /\ _`\ /\ \ __/\ \/\ \/\ \ /'__`\ /\ _`\
- \ \ \L\ \ \ \/\ \ \ \ \ `\\ \/\_\L\ \\ \ \/\ \
- \ \ ,__/\ \ \ \ \ \ \ \ , ` \/_/_\_<_\ \ \ \ \
- \ \ \/ \ \ \_/ \_\ \ \ \`\ \/\ \L\ \\ \ \_\ \
- \ \_\ \ `\___x___/\ \_\ \_\ \____/ \ \____/
- \/_/ '\/__//__/ \/_/\/_/\/___/ \/___/
- * _ _ _
- / /\ /\ \ /\_\ _
- / / \\ \ \ / / //\_\
- / / /\ \\ \ \_/ / / \/_/
- / / /\ \ \\ \___/ /
- / / /\ \_\ \\ \ \_/
- / / /\ \ \___\\ \ \
- / / / \ \ \__/ \ \ \ _
- / / /____\_\ \ \ \ \ /_/\
- / / /__________\ \ \_\ \_\/
- \/_____________/ \/_/
- °
- _____ _____ _____ _____ _____ _____ _______ _____
- /\ \ /\ \ /\ \ /\ \ /\ \ /\ \ ______ /::\ \ /\ \
- /::\ \ /::\ \ /::\ \ /::\ \ /::\____\ /::\ \ |::| | /::::\ \ /::\ \
- /::::\ \ /::::\ \ /::::\ \ /::::\ \ /:::/ / /::::\ \ |::| | /::::::\ \ /::::\ \
- /::::::\ \ /::::::\ \ /::::::\ \ /::::::\ \ /:::/ / /::::::\ \ |::| | /::::::::\ \ /::::::\ \
- /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/\:::\ \ /:::/ / /:::/\:::\ \ |::| | /:::/~~\:::\ \ /:::/\:::\ \
- /:::/__\:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ /:::/__\:::\ \ /:::/____/ /:::/__\:::\ \ |::| | /:::/ \:::\ \ /:::/__\:::\ \
- /::::\ \:::\ \ /::::\ \:::\ \ \:::\ \:::\ \ \:::\ \:::\ \ /::::\ \ /::::\ \:::\ \ |::| | /:::/ / \:::\ \ /::::\ \:::\ \
- /::::::\ \:::\ \ /::::::\ \:::\ \ ___\:::\ \:::\ \ ___\:::\ \:::\ \ /::::::\ \ _____ /::::::\ \:::\ \ |::| | /:::/____/ \:::\____\ /::::::\ \:::\ \
- /:::/\:::\ \:::\ ___\ /:::/\:::\ \:::\ \ /\ \:::\ \:::\ \ /\ \:::\ \:::\ \ /:::/\:::\ \ /\ \ /:::/\:::\ \:::\ \ ______|::|___|___ ____ |:::| | |:::| | /:::/\:::\ \:::\____\
- /:::/__\:::\ \:::| |/:::/ \:::\ \:::\____\/::\ \:::\ \:::\____\/::\ \:::\ \:::\____\/:::/ \:::\ /::\____\/:::/ \:::\ \:::\____\|:::::::::::::::::| ||:::|____| |:::| |/:::/ \:::\ \:::| |
- \:::\ \:::\ /:::|____|\::/ \:::\ /:::/ /\:::\ \:::\ \::/ /\:::\ \:::\ \::/ /\::/ \:::\ /:::/ /\::/ \:::\ /:::/ /|:::::::::::::::::|____| \:::\ \ /:::/ / \::/ |::::\ /:::|____|
- \:::\ \:::\/:::/ / \/____/ \:::\/:::/ / \:::\ \:::\ \/____/ \:::\ \:::\ \/____/ \/____/ \:::\/:::/ / \/____/ \:::\/:::/ / ~~~~~~|::|~~~|~~~ \:::\ \ /:::/ / \/____|:::::\/:::/ /
- \:::\ \::::::/ / \::::::/ / \:::\ \:::\ \ \:::\ \:::\ \ \::::::/ / \::::::/ / |::| | \:::\ /:::/ / |:::::::::/ /
- \:::\ \::::/ / \::::/ / \:::\ \:::\____\ \:::\ \:::\____\ \::::/ / \::::/ / |::| | \:::\__/:::/ / |::|\::::/ /
- \:::\ /:::/ / /:::/ / \:::\ /:::/ / \:::\ /:::/ / /:::/ / /:::/ / |::| | \::::::::/ / |::| \::/____/
- \:::\/:::/ / /:::/ / \:::\/:::/ / \:::\/:::/ / /:::/ / /:::/ / |::| | \::::::/ / |::| ~|
- \::::::/ / /:::/ / \::::::/ / \::::::/ / /:::/ / /:::/ / |::| | \::::/ / |::| |
- \::::/ / /:::/ / \::::/ / \::::/ / /:::/ / /:::/ / |::| | \::/____/ \::| |
- \::/____/ \::/ / \::/ / \::/ / \::/ / \::/ / |::|___| ~~ \:| |
- ~~ \/____/ \/____/ \/____/ \/____/ \/____/ ~~ \|___|
- *
- *
- Yb dP 8 w .d88b. w w dP"Yb
- Yb db dP 8d8b. .d88 w8ww YPwww. .d88b .d8b 8 8 8d8b w w8ww Yb dP " d8
- YbdPYbdP 8P Y8 8 8 8 d8 8.dP' 8 8b d8 8P 8 8 YbdP dP
- YP YP 8 8 `Y88 Y8P `Y88P' `Y88P `Y8P `Y8P8 8 8 Y8P dP w
- dP
- *
- *
- ::: ::::::::
- :+: :+: :+:
- +:+ +:+
- +#+ +#++:
- +#+ +#+
- #+# #+# #+#
- ### ######## _ _ _
- | | | | | |
- _ _ _ __ ___ _ __ ___ _ __ _ _ _ __ | |_ ___ __| | | |__ ___ ___ __ _ _ _ ___ ___ __ _____ ___ __ _ _ __ ___
- | | | | '_ \ / _ \ '_ \ / __| '__| | | | '_ \| __/ _ \/ _` | | '_ \ / _ \/ __/ _` | | | / __|/ _ \ \ \ /\ / / _ \ / __/ _` | '__/ _ \
- | |_| | | | | __/ | | | (__| | | |_| | |_) | || __/ (_| | | |_) | __/ (_| (_| | |_| \__ \ __/ \ V V / __/ | (_| (_| | | | __/
- \__,_|_| |_|\___|_| |_|\___|_| \__, | .__/ \__\___|\__,_| |_.__/ \___|\___\__,_|\__,_|___/\___| \_/\_/ \___| \___\__,_|_| \___|
- __/ | |
- |___/|_|
- ::: ::::::::
- :+: :+: :+:
- +:+ +:+
- +#+ +#++:
- +#+ +#+
- #+# #+# #+#
- ### ########
- */
- using BrightIdeasSoftware;
- using ccapidebugger.Properties;
- using PS3Lib;
- using RTF;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Diagnostics;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Text.RegularExpressions;
- using System.Windows.Forms;
- public class Form1 : MetroFramework.Forms.MetroForm
- {
- private ArrayBuilder arBuilder = new ArrayBuilder(new byte[4]);
- private RichTextBox asciiText;
- private TextBox autoUpdateTime;
- private Timer autoUpdateTimer;
- private Button btnFindRanges;
- private Button btnSearch;
- private TextBox bytesLegthText;
- private ComboBox comboByteLength;
- private ComboBox comboMode;
- private IContainer components;
- private Label connectedLbl;
- private ComboBox dexHexCombo;
- private Button dumpMemoryBtn;
- private TextBox endRangeTxt;
- private ccapidebugger.frmFindRanges frmFindRanges = new ccapidebugger.frmFindRanges();
- private CheckBox hexCheck;
- private RichTextBox hexCode;
- private OLVColumn hexColumn;
- private TableLayoutPanel hexSearchLayout;
- private TableLayoutPanel hexViewerLayout;
- private TextBox jumpUint;
- private Label label1;
- private Label label2;
- private Label label3;
- private Label label4;
- private Label label5;
- private Label label6;
- private Label label7;
- private Label label8;
- private Label label9;
- private Label lblAddress;
- private Label lblBytes;
- private Label lblConnection;
- private Label lblDebugging;
- private Label lblJump;
- private Label lblLength;
- private Label lblMode;
- private Label lblms;
- private Label lblOffset;
- private Label lblSearch;
- private Label lblStatus;
- private Label lblUpdate;
- private TableLayoutPanel leftLayoutPanel;
- private TableLayoutPanel mainTableLayout;
- private Button minusHundred;
- private OLVColumn OffsetColumn;
- private RichTextBox offsetsText;
- private TextBox offsetTxt;
- private byte[] oldBytes;
- private Panel panel2;
- private Panel panelDebugging;
- private Panel panelOffset;
- private Button plusHundred;
- private Panel pnlConnection;
- private PS3API PS3 = new PS3API(SelectAPI.TargetManager);
- private PictureBox refreshBtn;
- private List<OffsetItem> resultOffsetList;
- private TextBox resultTxt;
- private BackgroundWorker saveWorker;
- private TextBox searchEndTxt;
- private Panel searchPanel;
- private Button searchResult;
- private TextBox searchStartTxt;
- private ObjectListView searchTbl;
- private Timer searchTime;
- private BackgroundWorker searchWorker;
- private Label srchLabel;
- private CheckBox startAutoDebug;
- private Button startDebug;
- private TextBox startHex;
- private TextBox startRangeTxt;
- private Stopwatch stopWatch = new Stopwatch();
- private Label stopWatchLabel;
- private ComboBox typeCombo;
- private MetroFramework.Controls.MetroRadioButton radioCCAPI;
- private MetroFramework.Controls.MetroRadioButton radioTMAPI;
- private MetroFramework.Controls.MetroButton btnConnection;
- private MetroFramework.Controls.MetroButton setOffset;
- private MetroFramework.Controls.MetroButton getOffset;
- private Label label10;
- private Label label11;
- private MetroFramework.Controls.MetroTextBox ipaddress;
- private OLVColumn valueColumn;
- public Form1()
- {
- this.InitializeComponent();
- this.comboByteLength.SelectedIndex = 0;
- this.dexHexCombo.SelectedIndex = 0;
- this.comboMode.SelectedIndex = 0;
- this.typeCombo.SelectedIndex = 2;
- }
- private void asciiText_VScroll(object sender, EventArgs e)
- {
- int num = GetScrollPos(this.asciiText.Handle, 1) << 0x10;
- uint num2 = (uint) (4 | num);
- SendMessage(this.hexCode.Handle, 0x115, new IntPtr((long) num2), new IntPtr(0));
- SendMessage(this.offsetsText.Handle, 0x115, new IntPtr((long) num2), new IntPtr(0));
- }
- private void autoUpdateTimer_Tick(object sender, EventArgs e)
- {
- this.debugShit();
- }
- private void btnFindRanges_Click(object sender, EventArgs e)
- {
- if (this.btnFindRanges.Text.Equals("Stop"))
- {
- this.btnFindRanges.Text = "Find Ranges";
- this.frmFindRanges.stopFinding();
- }
- else
- {
- this.btnFindRanges.Text = "Stop";
- if (!this.frmFindRanges.Visible)
- {
- this.frmFindRanges = new ccapidebugger.frmFindRanges();
- }
- this.frmFindRanges.Show();
- this.frmFindRanges.findRanges(this.PS3);
- }
- }
- private void btnSearch_Click(object sender, EventArgs e)
- {
- this.startSearching(0);
- }
- private void comboMode_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (this.comboMode.SelectedIndex == 1)
- {
- MessageBox.Show("Value between.. is not supported yet.");
- }
- else
- {
- this.searchEndTxt.Enabled = false;
- }
- }
- public static string ConvertHexToString(string HexValue)
- {
- string str = "";
- while (HexValue.Length > 0)
- {
- str = str + Convert.ToChar(Convert.ToUInt32(HexValue.Substring(0, 2), 0x10)).ToString();
- HexValue = HexValue.Substring(2, HexValue.Length - 2);
- }
- return str;
- }
- public static string ConvertStringToHex(string asciiString)
- {
- string str = "";
- foreach (char ch in asciiString)
- {
- int num = ch;
- str = str + string.Format("{0:x2}", Convert.ToUInt32(num.ToString()));
- }
- return str;
- }
- private void debugShit()
- {
- this.hexCode.Text = "";
- this.offsetsText.Text = "";
- string str = this.startHex.Text.Substring(this.startHex.Text.Length - 1, 1);
- if (!"0".Equals(str))
- {
- this.startHex.Text = this.startHex.Text.Remove(this.startHex.Text.Length - 1, 1) + "0";
- }
- uint offset = Convert.ToUInt32(this.startHex.Text, 0x10);
- RTFBuilderbase builderbase = new RTFBuilder();
- builderbase.Font(RTFFont.CourierNew);
- builderbase.FontSize(22f);
- byte[] bytes = this.PS3.GetBytes(offset, Convert.ToInt32(this.bytesLegthText.Text));
- for (int i = 0; i < bytes.Length; i++)
- {
- builderbase.Font(RTFFont.CourierNew);
- builderbase.FontSize(22f);
- if (this.oldBytes != null)
- {
- if (bytes.Length == this.oldBytes.Length)
- {
- if (bytes[i] == this.oldBytes[i])
- {
- builderbase.Append(bytes[i].ToString("X2") + " ");
- }
- else
- {
- builderbase.ForeColor(KnownColor.Red).Append(bytes[i].ToString("X2") + " ");
- }
- }
- else
- {
- builderbase.Append(bytes[i].ToString("X2") + " ");
- }
- }
- else
- {
- builderbase.Append(bytes[i].ToString("X2") + " ");
- }
- }
- this.oldBytes = bytes;
- string str2 = builderbase.ToString();
- this.hexCode.Rtf = str2;
- string str3 = SpliceText(Encoding.Default.GetString(bytes).Replace("\0", ".").Replace("\a", ".").Replace("\v", ".").Replace("\r", ".").Replace(" ", ".").Replace("\t", ".").Replace("\n", ".").Replace("\b", ".").Replace("\f", "."), 0x10);
- this.asciiText.Text = str3;
- uint num3 = offset;
- int num4 = (this.hexCode.Text.Length / 0x30) + 1;
- for (int j = 0; j < num4; j++)
- {
- this.offsetsText.Text = this.offsetsText.Text + "0x" + Convert.ToString((long) num3, 0x10).ToUpper() + Environment.NewLine;
- num3 += 0x10;
- }
- }
- protected override void Dispose(bool disposing)
- {
- if (disposing && (this.components != null))
- {
- this.components.Dispose();
- }
- base.Dispose(disposing);
- }
- private void dumbMemoryToFile()
- {
- try
- {
- string path = "";
- uint num = Convert.ToUInt32(this.startRangeTxt.Text, 0x10);
- int num3 = Convert.ToInt32(Convert.ToUInt32(this.endRangeTxt.Text, 0x10)) - Convert.ToInt32(num);
- if ((this.startRangeTxt.Text.Length == 8) && (this.endRangeTxt.Text.Length == 8))
- {
- SaveFileDialog dialog = new SaveFileDialog {
- Filter = "Binary (*.bin)|*.bin|All files (*.*)|*.*",
- FileName = "MEMDUMB_" + this.startRangeTxt.Text + "_" + this.endRangeTxt.Text,
- Title = "Dump PS3 Memory to file",
- RestoreDirectory = true
- };
- if (dialog.ShowDialog() == DialogResult.OK)
- {
- this.dumpMemoryBtn.Image = Resources.loading1;
- this.dumpMemoryBtn.Text = "";
- path = dialog.FileName;
- if (path != "")
- {
- if (File.Exists(path))
- {
- File.Delete(path);
- }
- object[] argument = new object[] { 3, path, num, num3 };
- this.saveWorker.RunWorkerAsync(argument);
- }
- }
- }
- }
- catch (Exception)
- {
- MessageBox.Show("Please check your offset range and try again.");
- }
- }
- private void dumpMemoryBtn_Click(object sender, EventArgs e)
- {
- if (this.dumpMemoryBtn.Text == "")
- {
- MessageBox.Show("Please wait until saving finished.");
- }
- else
- {
- this.dumbMemoryToFile();
- }
- }
- private byte[] getBytesByInput(string input)
- {
- return StringToByteArray(this.getSearchHexValue(input));
- }
- [DllImport("User32.dll")]
- public static extern int GetScrollPos(IntPtr hWnd, int nBar);
- private string getSearchHexValue(string input)
- {
- string str = "00";
- if (!this.hexCheck.Checked)
- {
- if (this.typeCombo.SelectedIndex != 4)
- {
- try
- {
- str = Convert.ToInt64(input).ToString("X");
- }
- catch (Exception)
- {
- MessageBox.Show("Could not convert to HEX.");
- }
- }
- else
- {
- try
- {
- str = ConvertStringToHex(input).ToUpper();
- }
- catch (Exception)
- {
- MessageBox.Show("Could not convert to HEX.");
- }
- }
- }
- else
- {
- str = input;
- }
- switch (this.typeCombo.SelectedIndex)
- {
- case 0:
- return str.PadLeft(2, '0');
- case 1:
- return str.PadLeft(4, '0');
- case 2:
- return str.PadLeft(8, '0');
- }
- return str;
- }
- private string getSearchValue(string input)
- {
- if (this.hexCheck.Checked)
- {
- if (this.typeCombo.SelectedIndex != 4)
- {
- try
- {
- return Convert.ToInt32(this.searchStartTxt.Text, 0x10).ToString();
- }
- catch (Exception)
- {
- MessageBox.Show("Could not convert to Decimal.");
- goto Label_006E;
- }
- }
- try
- {
- return ConvertHexToString(this.searchStartTxt.Text).ToUpper();
- }
- catch (Exception)
- {
- MessageBox.Show("Could not convert to String.");
- goto Label_006E;
- }
- }
- return input;
- Label_006E:
- return "";
- }
- private void hexCheck_CheckedChanged(object sender, EventArgs e)
- {
- this.setSearchingValues();
- }
- private void hexCode_Click(object sender, EventArgs e)
- {
- this.dexHexCombo.SelectedIndex = 1;
- int index = this.hexCode.SelectionStart / 0x30;
- int num2 = (this.hexCode.SelectionStart - (index * 0x30)) / 3;
- string str = this.offsetsText.Lines.ElementAt<string>(index);
- string str2 = num2.ToString("X");
- str = str.Remove(str.Length - 1, 1) + str2;
- this.offsetTxt.Text = str;
- this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadByte(Convert.ToUInt32(str, 0x10)), 0x10).ToUpper();
- this.resultTxt.Focus();
- }
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- this.mainTableLayout = new System.Windows.Forms.TableLayoutPanel();
- this.leftLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
- this.panelDebugging = new System.Windows.Forms.Panel();
- this.startDebug = new System.Windows.Forms.Button();
- this.startAutoDebug = new System.Windows.Forms.CheckBox();
- this.lblms = new System.Windows.Forms.Label();
- this.autoUpdateTime = new System.Windows.Forms.TextBox();
- this.lblUpdate = new System.Windows.Forms.Label();
- this.plusHundred = new System.Windows.Forms.Button();
- this.minusHundred = new System.Windows.Forms.Button();
- this.jumpUint = new System.Windows.Forms.TextBox();
- this.lblJump = new System.Windows.Forms.Label();
- this.lblBytes = new System.Windows.Forms.Label();
- this.bytesLegthText = new System.Windows.Forms.TextBox();
- this.lblLength = new System.Windows.Forms.Label();
- this.startHex = new System.Windows.Forms.TextBox();
- this.lblAddress = new System.Windows.Forms.Label();
- this.lblDebugging = new System.Windows.Forms.Label();
- this.panelOffset = new System.Windows.Forms.Panel();
- this.getOffset = new MetroFramework.Controls.MetroButton();
- this.setOffset = new MetroFramework.Controls.MetroButton();
- this.dexHexCombo = new System.Windows.Forms.ComboBox();
- this.resultTxt = new System.Windows.Forms.TextBox();
- this.comboByteLength = new System.Windows.Forms.ComboBox();
- this.offsetTxt = new System.Windows.Forms.TextBox();
- this.lblOffset = new System.Windows.Forms.Label();
- this.pnlConnection = new System.Windows.Forms.Panel();
- this.ipaddress = new MetroFramework.Controls.MetroTextBox();
- this.btnConnection = new MetroFramework.Controls.MetroButton();
- this.radioTMAPI = new MetroFramework.Controls.MetroRadioButton();
- this.radioCCAPI = new MetroFramework.Controls.MetroRadioButton();
- this.connectedLbl = new System.Windows.Forms.Label();
- this.lblStatus = new System.Windows.Forms.Label();
- this.lblConnection = new System.Windows.Forms.Label();
- this.hexSearchLayout = new System.Windows.Forms.TableLayoutPanel();
- this.hexViewerLayout = new System.Windows.Forms.TableLayoutPanel();
- this.searchTbl = new BrightIdeasSoftware.ObjectListView();
- this.OffsetColumn = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
- this.hexColumn = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
- this.valueColumn = ((BrightIdeasSoftware.OLVColumn)(new BrightIdeasSoftware.OLVColumn()));
- this.label3 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.label1 = new System.Windows.Forms.Label();
- this.panel2 = new System.Windows.Forms.Panel();
- this.refreshBtn = new System.Windows.Forms.PictureBox();
- this.srchLabel = new System.Windows.Forms.Label();
- this.offsetsText = new System.Windows.Forms.RichTextBox();
- this.asciiText = new System.Windows.Forms.RichTextBox();
- this.hexCode = new System.Windows.Forms.RichTextBox();
- this.searchPanel = new System.Windows.Forms.Panel();
- this.btnFindRanges = new System.Windows.Forms.Button();
- this.label8 = new System.Windows.Forms.Label();
- this.stopWatchLabel = new System.Windows.Forms.Label();
- this.lblSearch = new System.Windows.Forms.Label();
- this.label7 = new System.Windows.Forms.Label();
- this.dumpMemoryBtn = new System.Windows.Forms.Button();
- this.searchResult = new System.Windows.Forms.Button();
- this.searchEndTxt = new System.Windows.Forms.TextBox();
- this.hexCheck = new System.Windows.Forms.CheckBox();
- this.typeCombo = new System.Windows.Forms.ComboBox();
- this.label6 = new System.Windows.Forms.Label();
- this.comboMode = new System.Windows.Forms.ComboBox();
- this.lblMode = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.searchStartTxt = new System.Windows.Forms.TextBox();
- this.label4 = new System.Windows.Forms.Label();
- this.endRangeTxt = new System.Windows.Forms.TextBox();
- this.startRangeTxt = new System.Windows.Forms.TextBox();
- this.label9 = new System.Windows.Forms.Label();
- this.btnSearch = new System.Windows.Forms.Button();
- this.autoUpdateTimer = new System.Windows.Forms.Timer(this.components);
- this.searchWorker = new System.ComponentModel.BackgroundWorker();
- this.saveWorker = new System.ComponentModel.BackgroundWorker();
- this.searchTime = new System.Windows.Forms.Timer(this.components);
- this.label10 = new System.Windows.Forms.Label();
- this.label11 = new System.Windows.Forms.Label();
- this.mainTableLayout.SuspendLayout();
- this.leftLayoutPanel.SuspendLayout();
- this.panelDebugging.SuspendLayout();
- this.panelOffset.SuspendLayout();
- this.pnlConnection.SuspendLayout();
- this.hexSearchLayout.SuspendLayout();
- this.hexViewerLayout.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.searchTbl)).BeginInit();
- this.panel2.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.refreshBtn)).BeginInit();
- this.searchPanel.SuspendLayout();
- this.SuspendLayout();
- //
- // mainTableLayout
- //
- this.mainTableLayout.BackColor = System.Drawing.SystemColors.Window;
- this.mainTableLayout.ColumnCount = 2;
- this.mainTableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
- this.mainTableLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.mainTableLayout.Controls.Add(this.leftLayoutPanel, 0, 0);
- this.mainTableLayout.Controls.Add(this.hexSearchLayout, 1, 0);
- this.mainTableLayout.Dock = System.Windows.Forms.DockStyle.Fill;
- this.mainTableLayout.ForeColor = System.Drawing.SystemColors.ControlText;
- this.mainTableLayout.Location = new System.Drawing.Point(20, 60);
- this.mainTableLayout.Margin = new System.Windows.Forms.Padding(0);
- this.mainTableLayout.Name = "mainTableLayout";
- this.mainTableLayout.RowCount = 1;
- this.mainTableLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.mainTableLayout.Size = new System.Drawing.Size(1210, 542);
- this.mainTableLayout.TabIndex = 0;
- //
- // leftLayoutPanel
- //
- this.leftLayoutPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(247)))), ((int)(((byte)(247)))), ((int)(((byte)(247)))));
- this.leftLayoutPanel.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
- this.leftLayoutPanel.ColumnCount = 1;
- this.leftLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.leftLayoutPanel.Controls.Add(this.panelDebugging, 0, 2);
- this.leftLayoutPanel.Controls.Add(this.panelOffset, 0, 1);
- this.leftLayoutPanel.Controls.Add(this.pnlConnection, 0, 0);
- this.leftLayoutPanel.Dock = System.Windows.Forms.DockStyle.Fill;
- this.leftLayoutPanel.ForeColor = System.Drawing.SystemColors.ControlText;
- this.leftLayoutPanel.Location = new System.Drawing.Point(0, 0);
- this.leftLayoutPanel.Margin = new System.Windows.Forms.Padding(0);
- this.leftLayoutPanel.Name = "leftLayoutPanel";
- this.leftLayoutPanel.RowCount = 3;
- this.leftLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 147F));
- this.leftLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 140F));
- this.leftLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 250F));
- this.leftLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
- this.leftLayoutPanel.Size = new System.Drawing.Size(250, 542);
- this.leftLayoutPanel.TabIndex = 1;
- //
- // panelDebugging
- //
- this.panelDebugging.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.panelDebugging.Controls.Add(this.startDebug);
- this.panelDebugging.Controls.Add(this.startAutoDebug);
- this.panelDebugging.Controls.Add(this.lblms);
- this.panelDebugging.Controls.Add(this.autoUpdateTime);
- this.panelDebugging.Controls.Add(this.lblUpdate);
- this.panelDebugging.Controls.Add(this.plusHundred);
- this.panelDebugging.Controls.Add(this.minusHundred);
- this.panelDebugging.Controls.Add(this.jumpUint);
- this.panelDebugging.Controls.Add(this.lblJump);
- this.panelDebugging.Controls.Add(this.lblBytes);
- this.panelDebugging.Controls.Add(this.bytesLegthText);
- this.panelDebugging.Controls.Add(this.lblLength);
- this.panelDebugging.Controls.Add(this.startHex);
- this.panelDebugging.Controls.Add(this.lblAddress);
- this.panelDebugging.Controls.Add(this.lblDebugging);
- this.panelDebugging.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panelDebugging.Location = new System.Drawing.Point(4, 293);
- this.panelDebugging.Name = "panelDebugging";
- this.panelDebugging.Size = new System.Drawing.Size(242, 245);
- this.panelDebugging.TabIndex = 0;
- //
- // startDebug
- //
- this.startDebug.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
- this.startDebug.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
- this.startDebug.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.startDebug.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.startDebug.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
- this.startDebug.Location = new System.Drawing.Point(12, 207);
- this.startDebug.Name = "startDebug";
- this.startDebug.Size = new System.Drawing.Size(217, 27);
- this.startDebug.TabIndex = 6;
- this.startDebug.Text = "Load / Refresh";
- this.startDebug.UseVisualStyleBackColor = false;
- this.startDebug.Click += new System.EventHandler(this.startDebug_Click);
- //
- // startAutoDebug
- //
- this.startAutoDebug.AutoSize = true;
- this.startAutoDebug.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.startAutoDebug.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.startAutoDebug.Location = new System.Drawing.Point(10, 182);
- this.startAutoDebug.Name = "startAutoDebug";
- this.startAutoDebug.Size = new System.Drawing.Size(94, 19);
- this.startAutoDebug.TabIndex = 0;
- this.startAutoDebug.Text = "Auto update";
- this.startAutoDebug.UseVisualStyleBackColor = true;
- this.startAutoDebug.CheckedChanged += new System.EventHandler(this.startAutoDebug_CheckedChanged);
- //
- // lblms
- //
- this.lblms.AutoSize = true;
- this.lblms.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblms.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblms.Location = new System.Drawing.Point(156, 157);
- this.lblms.Name = "lblms";
- this.lblms.Size = new System.Drawing.Size(73, 15);
- this.lblms.TabIndex = 15;
- this.lblms.Text = "Miliseconds";
- //
- // autoUpdateTime
- //
- this.autoUpdateTime.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.autoUpdateTime.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.autoUpdateTime.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.autoUpdateTime.ForeColor = System.Drawing.Color.White;
- this.autoUpdateTime.Location = new System.Drawing.Point(89, 151);
- this.autoUpdateTime.Name = "autoUpdateTime";
- this.autoUpdateTime.Size = new System.Drawing.Size(62, 22);
- this.autoUpdateTime.TabIndex = 14;
- this.autoUpdateTime.Text = "1000";
- //
- // lblUpdate
- //
- this.lblUpdate.AutoSize = true;
- this.lblUpdate.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblUpdate.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblUpdate.Location = new System.Drawing.Point(9, 155);
- this.lblUpdate.Name = "lblUpdate";
- this.lblUpdate.Size = new System.Drawing.Size(47, 15);
- this.lblUpdate.TabIndex = 13;
- this.lblUpdate.Text = "Update";
- //
- // plusHundred
- //
- this.plusHundred.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
- this.plusHundred.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
- this.plusHundred.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.plusHundred.Font = new System.Drawing.Font("Arial Black", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.plusHundred.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
- this.plusHundred.Location = new System.Drawing.Point(201, 120);
- this.plusHundred.Name = "plusHundred";
- this.plusHundred.Size = new System.Drawing.Size(28, 22);
- this.plusHundred.TabIndex = 12;
- this.plusHundred.Text = "+";
- this.plusHundred.UseVisualStyleBackColor = false;
- this.plusHundred.Click += new System.EventHandler(this.plusHundred_Click);
- //
- // minusHundred
- //
- this.minusHundred.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
- this.minusHundred.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
- this.minusHundred.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.minusHundred.Font = new System.Drawing.Font("Arial Black", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.minusHundred.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
- this.minusHundred.Location = new System.Drawing.Point(167, 120);
- this.minusHundred.Name = "minusHundred";
- this.minusHundred.Size = new System.Drawing.Size(28, 22);
- this.minusHundred.TabIndex = 6;
- this.minusHundred.Text = "-";
- this.minusHundred.UseVisualStyleBackColor = false;
- this.minusHundred.Click += new System.EventHandler(this.minusHundred_Click);
- //
- // jumpUint
- //
- this.jumpUint.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.jumpUint.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.jumpUint.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.jumpUint.ForeColor = System.Drawing.Color.White;
- this.jumpUint.Location = new System.Drawing.Point(89, 120);
- this.jumpUint.Name = "jumpUint";
- this.jumpUint.Size = new System.Drawing.Size(72, 22);
- this.jumpUint.TabIndex = 11;
- this.jumpUint.Text = "0x50";
- //
- // lblJump
- //
- this.lblJump.AutoSize = true;
- this.lblJump.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblJump.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblJump.Location = new System.Drawing.Point(9, 124);
- this.lblJump.Name = "lblJump";
- this.lblJump.Size = new System.Drawing.Size(39, 15);
- this.lblJump.TabIndex = 10;
- this.lblJump.Text = "Jump";
- //
- // lblBytes
- //
- this.lblBytes.AutoSize = true;
- this.lblBytes.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblBytes.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblBytes.Location = new System.Drawing.Point(181, 94);
- this.lblBytes.Name = "lblBytes";
- this.lblBytes.Size = new System.Drawing.Size(37, 15);
- this.lblBytes.TabIndex = 9;
- this.lblBytes.Text = "Bytes";
- //
- // bytesLegthText
- //
- this.bytesLegthText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.bytesLegthText.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.bytesLegthText.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.bytesLegthText.ForeColor = System.Drawing.Color.White;
- this.bytesLegthText.Location = new System.Drawing.Point(89, 88);
- this.bytesLegthText.Name = "bytesLegthText";
- this.bytesLegthText.Size = new System.Drawing.Size(89, 22);
- this.bytesLegthText.TabIndex = 8;
- this.bytesLegthText.Text = "800";
- //
- // lblLength
- //
- this.lblLength.AutoSize = true;
- this.lblLength.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblLength.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblLength.Location = new System.Drawing.Point(9, 92);
- this.lblLength.Name = "lblLength";
- this.lblLength.Size = new System.Drawing.Size(46, 15);
- this.lblLength.TabIndex = 7;
- this.lblLength.Text = "Length";
- //
- // startHex
- //
- this.startHex.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.startHex.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.startHex.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.startHex.ForeColor = System.Drawing.Color.White;
- this.startHex.Location = new System.Drawing.Point(89, 57);
- this.startHex.Name = "startHex";
- this.startHex.Size = new System.Drawing.Size(140, 22);
- this.startHex.TabIndex = 6;
- this.startHex.Text = "0x00000000";
- //
- // lblAddress
- //
- this.lblAddress.AutoSize = true;
- this.lblAddress.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblAddress.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblAddress.Location = new System.Drawing.Point(9, 61);
- this.lblAddress.Name = "lblAddress";
- this.lblAddress.Size = new System.Drawing.Size(55, 15);
- this.lblAddress.TabIndex = 4;
- this.lblAddress.Text = "Address";
- //
- // lblDebugging
- //
- this.lblDebugging.AutoSize = true;
- this.lblDebugging.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblDebugging.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblDebugging.Location = new System.Drawing.Point(8, 16);
- this.lblDebugging.Name = "lblDebugging";
- this.lblDebugging.Size = new System.Drawing.Size(108, 24);
- this.lblDebugging.TabIndex = 2;
- this.lblDebugging.Text = "Debugging";
- //
- // panelOffset
- //
- this.panelOffset.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.panelOffset.Controls.Add(this.getOffset);
- this.panelOffset.Controls.Add(this.setOffset);
- this.panelOffset.Controls.Add(this.dexHexCombo);
- this.panelOffset.Controls.Add(this.resultTxt);
- this.panelOffset.Controls.Add(this.comboByteLength);
- this.panelOffset.Controls.Add(this.offsetTxt);
- this.panelOffset.Controls.Add(this.lblOffset);
- this.panelOffset.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panelOffset.Location = new System.Drawing.Point(4, 152);
- this.panelOffset.Name = "panelOffset";
- this.panelOffset.Size = new System.Drawing.Size(242, 134);
- this.panelOffset.TabIndex = 0;
- //
- // getOffset
- //
- this.getOffset.Highlight = false;
- this.getOffset.Location = new System.Drawing.Point(136, 98);
- this.getOffset.Name = "getOffset";
- this.getOffset.Size = new System.Drawing.Size(93, 23);
- this.getOffset.Style = MetroFramework.MetroColorStyle.Purple;
- this.getOffset.StyleManager = null;
- this.getOffset.TabIndex = 8;
- this.getOffset.Text = "Get";
- this.getOffset.Theme = MetroFramework.MetroThemeStyle.Dark;
- this.getOffset.Click += new System.EventHandler(this.metroButton2_Click);
- //
- // setOffset
- //
- this.setOffset.Highlight = false;
- this.setOffset.Location = new System.Drawing.Point(10, 98);
- this.setOffset.Name = "setOffset";
- this.setOffset.Size = new System.Drawing.Size(114, 23);
- this.setOffset.Style = MetroFramework.MetroColorStyle.Purple;
- this.setOffset.StyleManager = null;
- this.setOffset.TabIndex = 7;
- this.setOffset.Text = "Set";
- this.setOffset.Theme = MetroFramework.MetroThemeStyle.Dark;
- this.setOffset.Click += new System.EventHandler(this.metroButton1_Click_1);
- //
- // dexHexCombo
- //
- this.dexHexCombo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.dexHexCombo.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
- this.dexHexCombo.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.dexHexCombo.ForeColor = System.Drawing.Color.White;
- this.dexHexCombo.FormattingEnabled = true;
- this.dexHexCombo.Items.AddRange(new object[] {
- "dec",
- "hex"});
- this.dexHexCombo.Location = new System.Drawing.Point(136, 64);
- this.dexHexCombo.Name = "dexHexCombo";
- this.dexHexCombo.Size = new System.Drawing.Size(93, 24);
- this.dexHexCombo.TabIndex = 3;
- this.dexHexCombo.SelectedIndexChanged += new System.EventHandler(this.dexHexCombo_SelectedIndexChanged);
- //
- // resultTxt
- //
- this.resultTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.resultTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.resultTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.resultTxt.ForeColor = System.Drawing.Color.White;
- this.resultTxt.Location = new System.Drawing.Point(12, 66);
- this.resultTxt.Name = "resultTxt";
- this.resultTxt.Size = new System.Drawing.Size(112, 22);
- this.resultTxt.TabIndex = 2;
- this.resultTxt.Text = "Input/Output";
- this.resultTxt.TextChanged += new System.EventHandler(this.resultTxt_TextChanged);
- //
- // comboByteLength
- //
- this.comboByteLength.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.comboByteLength.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
- this.comboByteLength.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.comboByteLength.ForeColor = System.Drawing.Color.White;
- this.comboByteLength.FormattingEnabled = true;
- this.comboByteLength.Items.AddRange(new object[] {
- "1 Byte",
- "2 Bytes",
- "4 Bytes",
- "Text"});
- this.comboByteLength.Location = new System.Drawing.Point(136, 34);
- this.comboByteLength.Name = "comboByteLength";
- this.comboByteLength.Size = new System.Drawing.Size(93, 24);
- this.comboByteLength.TabIndex = 0;
- this.comboByteLength.SelectedIndexChanged += new System.EventHandler(this.comboByteLength_SelectedIndexChanged);
- //
- // offsetTxt
- //
- this.offsetTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.offsetTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.offsetTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.offsetTxt.ForeColor = System.Drawing.Color.White;
- this.offsetTxt.Location = new System.Drawing.Point(12, 35);
- this.offsetTxt.Name = "offsetTxt";
- this.offsetTxt.Size = new System.Drawing.Size(112, 22);
- this.offsetTxt.TabIndex = 0;
- this.offsetTxt.Text = "0x00000000";
- this.offsetTxt.TextChanged += new System.EventHandler(this.offsetTxt_TextChanged);
- //
- // lblOffset
- //
- this.lblOffset.AutoSize = true;
- this.lblOffset.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblOffset.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblOffset.Location = new System.Drawing.Point(8, 7);
- this.lblOffset.Name = "lblOffset";
- this.lblOffset.Size = new System.Drawing.Size(67, 24);
- this.lblOffset.TabIndex = 1;
- this.lblOffset.Text = "Offset";
- //
- // pnlConnection
- //
- this.pnlConnection.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.pnlConnection.Controls.Add(this.ipaddress);
- this.pnlConnection.Controls.Add(this.btnConnection);
- this.pnlConnection.Controls.Add(this.radioTMAPI);
- this.pnlConnection.Controls.Add(this.radioCCAPI);
- this.pnlConnection.Controls.Add(this.connectedLbl);
- this.pnlConnection.Controls.Add(this.lblStatus);
- this.pnlConnection.Controls.Add(this.lblConnection);
- this.pnlConnection.Location = new System.Drawing.Point(4, 4);
- this.pnlConnection.Name = "pnlConnection";
- this.pnlConnection.Size = new System.Drawing.Size(242, 141);
- this.pnlConnection.TabIndex = 0;
- this.pnlConnection.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlConnection_Paint);
- //
- // ipaddress
- //
- this.ipaddress.CustomBackground = false;
- this.ipaddress.CustomForeColor = false;
- this.ipaddress.FontSize = MetroFramework.MetroTextBoxSize.Small;
- this.ipaddress.FontWeight = MetroFramework.MetroTextBoxWeight.Regular;
- this.ipaddress.Location = new System.Drawing.Point(10, 70);
- this.ipaddress.Multiline = false;
- this.ipaddress.Name = "ipaddress";
- this.ipaddress.SelectedText = "";
- this.ipaddress.Size = new System.Drawing.Size(219, 23);
- this.ipaddress.Style = MetroFramework.MetroColorStyle.Purple;
- this.ipaddress.StyleManager = null;
- this.ipaddress.TabIndex = 7;
- this.ipaddress.Text = "192.168.1.42";
- this.ipaddress.Theme = MetroFramework.MetroThemeStyle.Dark;
- this.ipaddress.UseStyleColors = false;
- this.ipaddress.Click += new System.EventHandler(this.metroTextBox1_Click);
- //
- // btnConnection
- //
- this.btnConnection.Highlight = false;
- this.btnConnection.Location = new System.Drawing.Point(10, 97);
- this.btnConnection.Name = "btnConnection";
- this.btnConnection.Size = new System.Drawing.Size(219, 23);
- this.btnConnection.Style = MetroFramework.MetroColorStyle.Purple;
- this.btnConnection.StyleManager = null;
- this.btnConnection.TabIndex = 6;
- this.btnConnection.Text = "Connect and Attach";
- this.btnConnection.Theme = MetroFramework.MetroThemeStyle.Dark;
- this.btnConnection.Click += new System.EventHandler(this.metroButton1_Click);
- //
- // radioTMAPI
- //
- this.radioTMAPI.AutoSize = true;
- this.radioTMAPI.Checked = true;
- this.radioTMAPI.CustomBackground = false;
- this.radioTMAPI.CustomForeColor = false;
- this.radioTMAPI.FontSize = MetroFramework.MetroLinkSize.Small;
- this.radioTMAPI.FontWeight = MetroFramework.MetroLinkWeight.Regular;
- this.radioTMAPI.Location = new System.Drawing.Point(170, 49);
- this.radioTMAPI.Name = "radioTMAPI";
- this.radioTMAPI.Size = new System.Drawing.Size(59, 15);
- this.radioTMAPI.Style = MetroFramework.MetroColorStyle.Purple;
- this.radioTMAPI.StyleManager = null;
- this.radioTMAPI.TabIndex = 5;
- this.radioTMAPI.TabStop = true;
- this.radioTMAPI.Text = "TMAPI";
- this.radioTMAPI.Theme = MetroFramework.MetroThemeStyle.Dark;
- this.radioTMAPI.UseStyleColors = false;
- this.radioTMAPI.UseVisualStyleBackColor = true;
- this.radioTMAPI.CheckedChanged += new System.EventHandler(this.metroRadioButton2_CheckedChanged);
- //
- // radioCCAPI
- //
- this.radioCCAPI.AutoSize = true;
- this.radioCCAPI.CustomBackground = false;
- this.radioCCAPI.CustomForeColor = false;
- this.radioCCAPI.FontSize = MetroFramework.MetroLinkSize.Small;
- this.radioCCAPI.FontWeight = MetroFramework.MetroLinkWeight.Regular;
- this.radioCCAPI.Location = new System.Drawing.Point(12, 49);
- this.radioCCAPI.Name = "radioCCAPI";
- this.radioCCAPI.Size = new System.Drawing.Size(57, 15);
- this.radioCCAPI.Style = MetroFramework.MetroColorStyle.Purple;
- this.radioCCAPI.StyleManager = null;
- this.radioCCAPI.TabIndex = 4;
- this.radioCCAPI.Text = "CCAPI";
- this.radioCCAPI.Theme = MetroFramework.MetroThemeStyle.Dark;
- this.radioCCAPI.UseStyleColors = false;
- this.radioCCAPI.UseVisualStyleBackColor = true;
- this.radioCCAPI.CheckedChanged += new System.EventHandler(this.metroRadioButton1_CheckedChanged);
- //
- // connectedLbl
- //
- this.connectedLbl.AutoSize = true;
- this.connectedLbl.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.connectedLbl.ForeColor = System.Drawing.Color.Red;
- this.connectedLbl.Location = new System.Drawing.Point(93, 123);
- this.connectedLbl.Name = "connectedLbl";
- this.connectedLbl.Size = new System.Drawing.Size(85, 15);
- this.connectedLbl.TabIndex = 3;
- this.connectedLbl.Text = "Disconnected";
- //
- // lblStatus
- //
- this.lblStatus.AutoSize = true;
- this.lblStatus.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblStatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblStatus.Location = new System.Drawing.Point(51, 123);
- this.lblStatus.Name = "lblStatus";
- this.lblStatus.Size = new System.Drawing.Size(45, 15);
- this.lblStatus.TabIndex = 2;
- this.lblStatus.Text = "Status:";
- //
- // lblConnection
- //
- this.lblConnection.AutoSize = true;
- this.lblConnection.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.lblConnection.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblConnection.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblConnection.Location = new System.Drawing.Point(8, 9);
- this.lblConnection.Name = "lblConnection";
- this.lblConnection.Size = new System.Drawing.Size(116, 24);
- this.lblConnection.TabIndex = 0;
- this.lblConnection.Text = "Connection";
- //
- // hexSearchLayout
- //
- this.hexSearchLayout.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Single;
- this.hexSearchLayout.ColumnCount = 1;
- this.hexSearchLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.hexSearchLayout.Controls.Add(this.hexViewerLayout, 0, 0);
- this.hexSearchLayout.Controls.Add(this.searchPanel, 0, 1);
- this.hexSearchLayout.Dock = System.Windows.Forms.DockStyle.Fill;
- this.hexSearchLayout.Location = new System.Drawing.Point(250, 0);
- this.hexSearchLayout.Margin = new System.Windows.Forms.Padding(0);
- this.hexSearchLayout.Name = "hexSearchLayout";
- this.hexSearchLayout.RowCount = 2;
- this.hexSearchLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.hexSearchLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 80F));
- this.hexSearchLayout.Size = new System.Drawing.Size(960, 542);
- this.hexSearchLayout.TabIndex = 2;
- //
- // hexViewerLayout
- //
- this.hexViewerLayout.BackColor = System.Drawing.Color.White;
- this.hexViewerLayout.CellBorderStyle = System.Windows.Forms.TableLayoutPanelCellBorderStyle.Inset;
- this.hexViewerLayout.ColumnCount = 4;
- this.hexViewerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 220F));
- this.hexViewerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 110F));
- this.hexViewerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 446F));
- this.hexViewerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.hexViewerLayout.Controls.Add(this.searchTbl, 0, 1);
- this.hexViewerLayout.Controls.Add(this.label3, 3, 0);
- this.hexViewerLayout.Controls.Add(this.label2, 2, 0);
- this.hexViewerLayout.Controls.Add(this.label1, 1, 0);
- this.hexViewerLayout.Controls.Add(this.panel2, 0, 0);
- this.hexViewerLayout.Controls.Add(this.offsetsText, 1, 1);
- this.hexViewerLayout.Controls.Add(this.asciiText, 3, 1);
- this.hexViewerLayout.Controls.Add(this.hexCode, 2, 1);
- this.hexViewerLayout.Dock = System.Windows.Forms.DockStyle.Fill;
- this.hexViewerLayout.ForeColor = System.Drawing.SystemColors.ControlText;
- this.hexViewerLayout.Location = new System.Drawing.Point(1, 1);
- this.hexViewerLayout.Margin = new System.Windows.Forms.Padding(0);
- this.hexViewerLayout.Name = "hexViewerLayout";
- this.hexViewerLayout.RowCount = 2;
- this.hexViewerLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F));
- this.hexViewerLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F));
- this.hexViewerLayout.Size = new System.Drawing.Size(958, 459);
- this.hexViewerLayout.TabIndex = 2;
- //
- // searchTbl
- //
- this.searchTbl.AllColumns.Add(this.OffsetColumn);
- this.searchTbl.AllColumns.Add(this.hexColumn);
- this.searchTbl.AllColumns.Add(this.valueColumn);
- this.searchTbl.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.searchTbl.BorderStyle = System.Windows.Forms.BorderStyle.None;
- this.searchTbl.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
- this.OffsetColumn,
- this.hexColumn,
- this.valueColumn});
- this.searchTbl.Dock = System.Windows.Forms.DockStyle.Fill;
- this.searchTbl.ForeColor = System.Drawing.Color.Red;
- this.searchTbl.Location = new System.Drawing.Point(2, 32);
- this.searchTbl.Margin = new System.Windows.Forms.Padding(0);
- this.searchTbl.Name = "searchTbl";
- this.searchTbl.ShowGroups = false;
- this.searchTbl.Size = new System.Drawing.Size(220, 425);
- this.searchTbl.TabIndex = 11;
- this.searchTbl.UseCompatibleStateImageBehavior = false;
- this.searchTbl.View = System.Windows.Forms.View.Details;
- this.searchTbl.CellClick += new System.EventHandler<BrightIdeasSoftware.CellClickEventArgs>(this.searchTbl_CellClick);
- this.searchTbl.DoubleClick += new System.EventHandler(this.searchTbl_DoubleClick);
- //
- // OffsetColumn
- //
- this.OffsetColumn.AspectName = "Offset";
- this.OffsetColumn.CellPadding = null;
- this.OffsetColumn.Text = "Offset";
- this.OffsetColumn.Width = 85;
- //
- // hexColumn
- //
- this.hexColumn.AspectName = "HexValue";
- this.hexColumn.AspectToStringFormat = "";
- this.hexColumn.CellPadding = null;
- this.hexColumn.Text = "Hex";
- this.hexColumn.Width = 65;
- //
- // valueColumn
- //
- this.valueColumn.AspectName = "Value";
- this.valueColumn.AspectToStringFormat = "";
- this.valueColumn.CellPadding = null;
- this.valueColumn.Text = "Value";
- this.valueColumn.Width = 70;
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
- this.label3.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label3.ForeColor = System.Drawing.Color.White;
- this.label3.Location = new System.Drawing.Point(787, 2);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(166, 28);
- this.label3.TabIndex = 6;
- this.label3.Text = "Text";
- this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.label2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.label2.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label2.ForeColor = System.Drawing.Color.White;
- this.label2.Location = new System.Drawing.Point(339, 2);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(440, 28);
- this.label2.TabIndex = 5;
- this.label2.Text = "00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F";
- this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.label1.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label1.ForeColor = System.Drawing.Color.White;
- this.label1.Location = new System.Drawing.Point(227, 2);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(104, 28);
- this.label1.TabIndex = 4;
- this.label1.Text = "Offset";
- this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // panel2
- //
- this.panel2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.panel2.Controls.Add(this.refreshBtn);
- this.panel2.Controls.Add(this.srchLabel);
- this.panel2.Dock = System.Windows.Forms.DockStyle.Fill;
- this.panel2.ForeColor = System.Drawing.Color.White;
- this.panel2.Location = new System.Drawing.Point(2, 2);
- this.panel2.Margin = new System.Windows.Forms.Padding(0);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(220, 28);
- this.panel2.TabIndex = 12;
- //
- // refreshBtn
- //
- this.refreshBtn.Cursor = System.Windows.Forms.Cursors.Hand;
- this.refreshBtn.Location = new System.Drawing.Point(194, 4);
- this.refreshBtn.Name = "refreshBtn";
- this.refreshBtn.Size = new System.Drawing.Size(23, 24);
- this.refreshBtn.TabIndex = 27;
- this.refreshBtn.TabStop = false;
- this.refreshBtn.Click += new System.EventHandler(this.refreshBtn_Click);
- //
- // srchLabel
- //
- this.srchLabel.AutoSize = true;
- this.srchLabel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.srchLabel.Font = new System.Drawing.Font("Arial", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.srchLabel.ForeColor = System.Drawing.Color.White;
- this.srchLabel.Location = new System.Drawing.Point(3, 4);
- this.srchLabel.Name = "srchLabel";
- this.srchLabel.Size = new System.Drawing.Size(101, 17);
- this.srchLabel.TabIndex = 11;
- this.srchLabel.Text = "Search Result";
- this.srchLabel.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
- //
- // offsetsText
- //
- this.offsetsText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.offsetsText.BorderStyle = System.Windows.Forms.BorderStyle.None;
- this.offsetsText.Dock = System.Windows.Forms.DockStyle.Fill;
- this.offsetsText.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.offsetsText.ForeColor = System.Drawing.SystemColors.MenuHighlight;
- this.offsetsText.Location = new System.Drawing.Point(227, 35);
- this.offsetsText.Name = "offsetsText";
- this.offsetsText.ReadOnly = true;
- this.offsetsText.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
- this.offsetsText.Size = new System.Drawing.Size(104, 419);
- this.offsetsText.TabIndex = 7;
- this.offsetsText.Text = "0x00000000";
- //
- // asciiText
- //
- this.asciiText.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.asciiText.BorderStyle = System.Windows.Forms.BorderStyle.None;
- this.asciiText.Dock = System.Windows.Forms.DockStyle.Fill;
- this.asciiText.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.asciiText.ForeColor = System.Drawing.Color.White;
- this.asciiText.Location = new System.Drawing.Point(787, 35);
- this.asciiText.Name = "asciiText";
- this.asciiText.Size = new System.Drawing.Size(166, 419);
- this.asciiText.TabIndex = 9;
- this.asciiText.Text = ".";
- this.asciiText.VScroll += new System.EventHandler(this.asciiText_VScroll);
- //
- // hexCode
- //
- this.hexCode.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.hexCode.BorderStyle = System.Windows.Forms.BorderStyle.None;
- this.hexCode.Dock = System.Windows.Forms.DockStyle.Fill;
- this.hexCode.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.hexCode.ForeColor = System.Drawing.Color.White;
- this.hexCode.Location = new System.Drawing.Point(341, 35);
- this.hexCode.Margin = new System.Windows.Forms.Padding(5, 3, 3, 3);
- this.hexCode.Name = "hexCode";
- this.hexCode.ReadOnly = true;
- this.hexCode.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.None;
- this.hexCode.Size = new System.Drawing.Size(438, 419);
- this.hexCode.TabIndex = 8;
- this.hexCode.Text = "00";
- this.hexCode.Click += new System.EventHandler(this.hexCode_Click);
- //
- // searchPanel
- //
- this.searchPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.searchPanel.Controls.Add(this.btnFindRanges);
- this.searchPanel.Controls.Add(this.label8);
- this.searchPanel.Controls.Add(this.stopWatchLabel);
- this.searchPanel.Controls.Add(this.lblSearch);
- this.searchPanel.Controls.Add(this.label7);
- this.searchPanel.Controls.Add(this.dumpMemoryBtn);
- this.searchPanel.Controls.Add(this.searchResult);
- this.searchPanel.Controls.Add(this.searchEndTxt);
- this.searchPanel.Controls.Add(this.hexCheck);
- this.searchPanel.Controls.Add(this.typeCombo);
- this.searchPanel.Controls.Add(this.label6);
- this.searchPanel.Controls.Add(this.comboMode);
- this.searchPanel.Controls.Add(this.lblMode);
- this.searchPanel.Controls.Add(this.label5);
- this.searchPanel.Controls.Add(this.searchStartTxt);
- this.searchPanel.Controls.Add(this.label4);
- this.searchPanel.Controls.Add(this.endRangeTxt);
- this.searchPanel.Controls.Add(this.startRangeTxt);
- this.searchPanel.Controls.Add(this.label9);
- this.searchPanel.Controls.Add(this.btnSearch);
- this.searchPanel.Dock = System.Windows.Forms.DockStyle.Fill;
- this.searchPanel.Location = new System.Drawing.Point(1, 461);
- this.searchPanel.Margin = new System.Windows.Forms.Padding(0);
- this.searchPanel.Name = "searchPanel";
- this.searchPanel.Size = new System.Drawing.Size(958, 80);
- this.searchPanel.TabIndex = 1;
- //
- // btnFindRanges
- //
- this.btnFindRanges.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
- this.btnFindRanges.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
- this.btnFindRanges.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnFindRanges.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnFindRanges.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
- this.btnFindRanges.Location = new System.Drawing.Point(836, 8);
- this.btnFindRanges.Name = "btnFindRanges";
- this.btnFindRanges.Size = new System.Drawing.Size(114, 27);
- this.btnFindRanges.TabIndex = 32;
- this.btnFindRanges.Text = "Find Ranges";
- this.btnFindRanges.UseVisualStyleBackColor = false;
- this.btnFindRanges.Click += new System.EventHandler(this.btnFindRanges_Click);
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.label8.Location = new System.Drawing.Point(11, 45);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(35, 15);
- this.label8.TabIndex = 31;
- this.label8.Text = "Time";
- //
- // stopWatchLabel
- //
- this.stopWatchLabel.AutoSize = true;
- this.stopWatchLabel.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold);
- this.stopWatchLabel.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.stopWatchLabel.Location = new System.Drawing.Point(55, 45);
- this.stopWatchLabel.Name = "stopWatchLabel";
- this.stopWatchLabel.Size = new System.Drawing.Size(55, 15);
- this.stopWatchLabel.TabIndex = 30;
- this.stopWatchLabel.Text = "00:00:00";
- //
- // lblSearch
- //
- this.lblSearch.AutoSize = true;
- this.lblSearch.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblSearch.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblSearch.Location = new System.Drawing.Point(10, 9);
- this.lblSearch.Name = "lblSearch";
- this.lblSearch.Size = new System.Drawing.Size(77, 24);
- this.lblSearch.TabIndex = 29;
- this.lblSearch.Text = "Search";
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.label7.Location = new System.Drawing.Point(195, 42);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(18, 15);
- this.label7.TabIndex = 28;
- this.label7.Text = "to";
- //
- // dumpMemoryBtn
- //
- this.dumpMemoryBtn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
- this.dumpMemoryBtn.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
- this.dumpMemoryBtn.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.dumpMemoryBtn.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.dumpMemoryBtn.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
- this.dumpMemoryBtn.Location = new System.Drawing.Point(528, 45);
- this.dumpMemoryBtn.Name = "dumpMemoryBtn";
- this.dumpMemoryBtn.Size = new System.Drawing.Size(162, 27);
- this.dumpMemoryBtn.TabIndex = 27;
- this.dumpMemoryBtn.Text = "Dump Memory";
- this.dumpMemoryBtn.UseVisualStyleBackColor = false;
- this.dumpMemoryBtn.Click += new System.EventHandler(this.dumpMemoryBtn_Click);
- //
- // searchResult
- //
- this.searchResult.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
- this.searchResult.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
- this.searchResult.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.searchResult.Font = new System.Drawing.Font("Arial", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.searchResult.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
- this.searchResult.Location = new System.Drawing.Point(714, 45);
- this.searchResult.Name = "searchResult";
- this.searchResult.Size = new System.Drawing.Size(114, 27);
- this.searchResult.TabIndex = 26;
- this.searchResult.Text = "Search in Result";
- this.searchResult.UseVisualStyleBackColor = false;
- this.searchResult.Click += new System.EventHandler(this.searchResult_Click);
- //
- // searchEndTxt
- //
- this.searchEndTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.searchEndTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.searchEndTxt.Enabled = false;
- this.searchEndTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.searchEndTxt.ForeColor = System.Drawing.Color.White;
- this.searchEndTxt.Location = new System.Drawing.Point(216, 38);
- this.searchEndTxt.Name = "searchEndTxt";
- this.searchEndTxt.Size = new System.Drawing.Size(80, 22);
- this.searchEndTxt.TabIndex = 25;
- this.searchEndTxt.Text = "1";
- //
- // hexCheck
- //
- this.hexCheck.AutoSize = true;
- this.hexCheck.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.hexCheck.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.hexCheck.Location = new System.Drawing.Point(156, 12);
- this.hexCheck.Name = "hexCheck";
- this.hexCheck.Size = new System.Drawing.Size(49, 19);
- this.hexCheck.TabIndex = 16;
- this.hexCheck.Text = "HEX";
- this.hexCheck.UseVisualStyleBackColor = true;
- this.hexCheck.CheckedChanged += new System.EventHandler(this.hexCheck_CheckedChanged);
- //
- // typeCombo
- //
- this.typeCombo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.typeCombo.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
- this.typeCombo.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.typeCombo.ForeColor = System.Drawing.Color.White;
- this.typeCombo.FormattingEnabled = true;
- this.typeCombo.Items.AddRange(new object[] {
- "1 Byte",
- "2 Bytes",
- "4 Bytes",
- "Auto Bytes",
- "Text"});
- this.typeCombo.Location = new System.Drawing.Point(370, 41);
- this.typeCombo.Name = "typeCombo";
- this.typeCombo.Size = new System.Drawing.Size(96, 24);
- this.typeCombo.TabIndex = 24;
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.label6.Location = new System.Drawing.Point(317, 45);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(33, 15);
- this.label6.TabIndex = 23;
- this.label6.Text = "Type";
- //
- // comboMode
- //
- this.comboMode.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.comboMode.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
- this.comboMode.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.comboMode.ForeColor = System.Drawing.Color.White;
- this.comboMode.FormattingEnabled = true;
- this.comboMode.Items.AddRange(new object[] {
- "Equals",
- "Value between"});
- this.comboMode.Location = new System.Drawing.Point(370, 9);
- this.comboMode.Name = "comboMode";
- this.comboMode.Size = new System.Drawing.Size(96, 24);
- this.comboMode.TabIndex = 6;
- this.comboMode.SelectedIndexChanged += new System.EventHandler(this.comboMode_SelectedIndexChanged);
- //
- // lblMode
- //
- this.lblMode.AutoSize = true;
- this.lblMode.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.lblMode.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.lblMode.Location = new System.Drawing.Point(317, 13);
- this.lblMode.Name = "lblMode";
- this.lblMode.Size = new System.Drawing.Size(38, 15);
- this.lblMode.TabIndex = 22;
- this.lblMode.Text = "Mode";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.label5.Location = new System.Drawing.Point(112, 13);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(38, 15);
- this.label5.TabIndex = 21;
- this.label5.Text = "Value";
- //
- // searchStartTxt
- //
- this.searchStartTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.searchStartTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.searchStartTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.searchStartTxt.ForeColor = System.Drawing.Color.White;
- this.searchStartTxt.Location = new System.Drawing.Point(215, 10);
- this.searchStartTxt.Name = "searchStartTxt";
- this.searchStartTxt.Size = new System.Drawing.Size(80, 22);
- this.searchStartTxt.TabIndex = 20;
- this.searchStartTxt.Text = "0";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.label4.Location = new System.Drawing.Point(599, 13);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(18, 15);
- this.label4.TabIndex = 19;
- this.label4.Text = "to";
- //
- // endRangeTxt
- //
- this.endRangeTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.endRangeTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.endRangeTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.endRangeTxt.ForeColor = System.Drawing.Color.White;
- this.endRangeTxt.Location = new System.Drawing.Point(621, 9);
- this.endRangeTxt.Name = "endRangeTxt";
- this.endRangeTxt.Size = new System.Drawing.Size(69, 22);
- this.endRangeTxt.TabIndex = 18;
- this.endRangeTxt.Text = "00000000";
- //
- // startRangeTxt
- //
- this.startRangeTxt.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(15)))), ((int)(((byte)(15)))), ((int)(((byte)(15)))));
- this.startRangeTxt.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
- this.startRangeTxt.Font = new System.Drawing.Font("Arial", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.startRangeTxt.ForeColor = System.Drawing.Color.White;
- this.startRangeTxt.Location = new System.Drawing.Point(528, 9);
- this.startRangeTxt.Name = "startRangeTxt";
- this.startRangeTxt.Size = new System.Drawing.Size(69, 22);
- this.startRangeTxt.TabIndex = 17;
- this.startRangeTxt.Text = "00000000";
- //
- // label9
- //
- this.label9.AutoSize = true;
- this.label9.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.label9.Location = new System.Drawing.Point(485, 13);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(43, 15);
- this.label9.TabIndex = 4;
- this.label9.Text = "Range";
- //
- // btnSearch
- //
- this.btnSearch.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(238)))), ((int)(((byte)(238)))));
- this.btnSearch.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(204)))), ((int)(((byte)(204)))), ((int)(((byte)(204)))));
- this.btnSearch.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.btnSearch.Font = new System.Drawing.Font("Arial", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.btnSearch.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(51)))), ((int)(((byte)(51)))), ((int)(((byte)(51)))));
- this.btnSearch.Location = new System.Drawing.Point(714, 8);
- this.btnSearch.Name = "btnSearch";
- this.btnSearch.Size = new System.Drawing.Size(114, 27);
- this.btnSearch.TabIndex = 16;
- this.btnSearch.Text = "Search";
- this.btnSearch.UseVisualStyleBackColor = false;
- this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
- //
- // autoUpdateTimer
- //
- this.autoUpdateTimer.Interval = 1000;
- this.autoUpdateTimer.Tick += new System.EventHandler(this.autoUpdateTimer_Tick);
- //
- // searchWorker
- //
- this.searchWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.searchWorker_DoWork);
- this.searchWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.searchWorker_RunWorkerCompleted);
- //
- // saveWorker
- //
- this.saveWorker.DoWork += new System.ComponentModel.DoWorkEventHandler(this.saveWorker_DoWork);
- this.saveWorker.RunWorkerCompleted += new System.ComponentModel.RunWorkerCompletedEventHandler(this.saveWorker_RunWorkerCompleted);
- //
- // label10
- //
- this.label10.AutoSize = true;
- this.label10.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label10.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.label10.Location = new System.Drawing.Point(897, 8);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(234, 24);
- this.label10.TabIndex = 9;
- this.label10.Text = "Developed By: Madetho";
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.Font = new System.Drawing.Font("Arial", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
- this.label11.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(80)))), ((int)(((byte)(80)))), ((int)(((byte)(80)))));
- this.label11.Location = new System.Drawing.Point(869, 32);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(291, 24);
- this.label11.TabIndex = 10;
- this.label11.Text = "Customized By: BaSs_HaXoR";
- //
- // Form1
- //
- this.ClientSize = new System.Drawing.Size(1250, 622);
- this.Controls.Add(this.label11);
- this.Controls.Add(this.label10);
- this.Controls.Add(this.mainTableLayout);
- this.Location = new System.Drawing.Point(0, 0);
- this.Name = "Form1";
- this.Opacity = 0.99D;
- this.Style = MetroFramework.MetroColorStyle.Purple;
- this.Text = "CCAPI Debugger";
- this.Theme = MetroFramework.MetroThemeStyle.Dark;
- this.Load += new System.EventHandler(this.Form1_Load);
- this.mainTableLayout.ResumeLayout(false);
- this.leftLayoutPanel.ResumeLayout(false);
- this.panelDebugging.ResumeLayout(false);
- this.panelDebugging.PerformLayout();
- this.panelOffset.ResumeLayout(false);
- this.panelOffset.PerformLayout();
- this.pnlConnection.ResumeLayout(false);
- this.pnlConnection.PerformLayout();
- this.hexSearchLayout.ResumeLayout(false);
- this.hexViewerLayout.ResumeLayout(false);
- this.hexViewerLayout.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.searchTbl)).EndInit();
- this.panel2.ResumeLayout(false);
- this.panel2.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.refreshBtn)).EndInit();
- this.searchPanel.ResumeLayout(false);
- this.searchPanel.PerformLayout();
- this.ResumeLayout(false);
- this.PerformLayout();
- }
- private void minusHundred_Click(object sender, EventArgs e)
- {
- uint num = Convert.ToUInt32(this.startHex.Text, 0x10) - Convert.ToUInt32(this.jumpUint.Text, 0x10);
- this.startHex.Text = "0x" + Convert.ToString((long) num, 0x10).ToUpper();
- this.debugShit();
- }
- private void plusHundred_Click(object sender, EventArgs e)
- {
- uint num = Convert.ToUInt32(this.startHex.Text, 0x10) + Convert.ToUInt32(this.jumpUint.Text, 0x10);
- this.startHex.Text = "0x" + Convert.ToString((long) num, 0x10).ToUpper();
- this.debugShit();
- }
- protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
- {
- if (keyData == (Keys.Control | Keys.D))
- {
- this.dumbMemoryToFile();
- return true;
- }
- if (keyData == Keys.F5)
- {
- this.startSearching(1);
- return true;
- }
- if (keyData == Keys.F6)
- {
- this.debugShit();
- return true;
- }
- return base.ProcessCmdKey(ref msg, keyData);
- }
- private void refreshBtn_Click(object sender, EventArgs e)
- {
- this.startSearching(1);
- }
- private void saveMemoryToFile(string fileName, uint uintStartOffset, int intDifferenceRange)
- {
- try
- {
- FileStream stream = new FileStream(fileName, FileMode.Create, FileAccess.Write);
- byte[] bytes = this.PS3.GetBytes(uintStartOffset, intDifferenceRange);
- stream.Write(bytes, 0, bytes.Length);
- stream.Close();
- }
- catch (Exception)
- {
- MessageBox.Show("Could not dump PS3 Memory.");
- }
- }
- private void saveWorker_DoWork(object sender, DoWorkEventArgs e)
- {
- object[] argument = (object[]) e.Argument;
- this.saveMemoryToFile((string) argument[1], (uint) argument[2], (int) argument[3]);
- }
- private void saveWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
- {
- this.dumpMemoryBtn.Image = null;
- this.dumpMemoryBtn.Text = "Dump Memory";
- MessageBox.Show("Saved PS3 Memory Dump.");
- }
- private void searchResult_Click(object sender, EventArgs e)
- {
- this.startSearching(2);
- }
- private void searchTbl_CellClick(object sender, CellClickEventArgs e)
- {
- try
- {
- ObjectListView view = (ObjectListView) sender;
- OffsetItem selectedObject = (OffsetItem) view.SelectedObject;
- this.offsetTxt.Text = selectedObject.Offset;
- switch (selectedObject.ByteLength)
- {
- case 1:
- this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadByte(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
- this.comboByteLength.SelectedIndex = 0;
- break;
- case 2:
- this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadUInt16(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
- this.comboByteLength.SelectedIndex = 1;
- break;
- case 4:
- this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadUInt32(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
- this.comboByteLength.SelectedIndex = 2;
- break;
- default:
- this.resultTxt.Text = this.PS3.Extension.ReadString(Convert.ToUInt32(this.offsetTxt.Text, 0x10));
- this.comboByteLength.SelectedIndex = 3;
- break;
- }
- this.dexHexCombo.SelectedIndex = 0;
- }
- catch (Exception)
- {
- }
- }
- private void searchTbl_DoubleClick(object sender, EventArgs e)
- {
- try
- {
- ObjectListView view = (ObjectListView) sender;
- OffsetItem selectedObject = (OffsetItem) view.SelectedObject;
- this.startHex.Text = selectedObject.Offset;
- this.debugShit();
- }
- catch (Exception)
- {
- }
- }
- private void searchWorker_DoWork(object sender, DoWorkEventArgs e)
- {
- object[] argument = (object[]) e.Argument;
- SearchHandler handler = new SearchHandler((string) argument[1], (string) argument[2], (PS3API) argument[3], (byte[]) argument[4], (byte[]) argument[5], (string) argument[6], (string) argument[7], (int) argument[8]);
- if (((int) argument[0]) == 0)
- {
- this.resultOffsetList = handler.getResults((string) argument[1], (string) argument[2]);
- }
- else if (((int) argument[0]) == 1)
- {
- this.resultOffsetList = handler.getRefreshResults(this.resultOffsetList);
- }
- else if (((int) argument[0]) == 2)
- {
- this.resultOffsetList = handler.getSeatchResults(this.resultOffsetList);
- }
- }
- private void searchWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
- {
- this.stopWatch.Stop();
- TimeSpan elapsed = this.stopWatch.Elapsed;
- string str = string.Format("{0:00}:{1:00}.{2:00}", elapsed.Minutes, elapsed.Seconds, elapsed.Milliseconds / 10);
- this.stopWatchLabel.Text = str;
- this.refreshBtn.Image = Resources.staticLoading;
- this.btnSearch.Enabled = true;
- this.searchResult.Enabled = true;
- this.srchLabel.Text = "Search Result (" + this.resultOffsetList.Count + ")";
- this.searchTbl.SetObjects(this.resultOffsetList);
- }
- private void setSearchingValues()
- {
- if (this.hexCheck.Checked)
- {
- this.setValueToHEX();
- }
- else
- {
- this.setValueToDec();
- }
- }
- private void setValueToDec()
- {
- if (this.typeCombo.SelectedIndex != 4)
- {
- try
- {
- this.searchStartTxt.Text = Convert.ToInt32(this.searchStartTxt.Text, 0x10).ToString();
- if (this.comboMode.SelectedIndex == 1)
- {
- this.searchEndTxt.Text = Convert.ToInt32(this.searchEndTxt.Text, 0x10).ToString();
- }
- }
- catch (Exception)
- {
- MessageBox.Show("Could not convert to Decimal.");
- }
- }
- else
- {
- try
- {
- this.searchStartTxt.Text = ConvertHexToString(this.searchStartTxt.Text).ToUpper();
- if (this.comboMode.SelectedIndex == 1)
- {
- this.searchEndTxt.Text = ConvertHexToString(this.searchEndTxt.Text).ToUpper();
- }
- }
- catch (Exception)
- {
- MessageBox.Show("Could not convert to String.");
- }
- }
- }
- private void setValueToHEX()
- {
- if (this.typeCombo.SelectedIndex != 4)
- {
- try
- {
- this.searchStartTxt.Text = Convert.ToInt64(this.searchStartTxt.Text).ToString("X");
- if (this.comboMode.SelectedIndex == 1)
- {
- this.searchEndTxt.Text = Convert.ToInt64(this.searchEndTxt.Text).ToString("X");
- }
- }
- catch (Exception)
- {
- MessageBox.Show("Could not convert to HEX.");
- }
- }
- else
- {
- try
- {
- this.searchStartTxt.Text = ConvertStringToHex(this.searchStartTxt.Text).ToUpper();
- if (this.comboMode.SelectedIndex == 1)
- {
- this.searchEndTxt.Text = ConvertStringToHex(this.searchEndTxt.Text).ToUpper();
- }
- }
- catch (Exception)
- {
- MessageBox.Show("Could not convert to HEX.");
- }
- }
- }
- public static string SpliceText(string text, int lineLength)
- {
- return Regex.Replace(text, "(.{" + lineLength + "})", "$1" + Environment.NewLine);
- }
- private void startAutoDebug_CheckedChanged(object sender, EventArgs e)
- {
- if (this.startAutoDebug.Checked)
- {
- this.autoUpdateTimer.Interval = Convert.ToInt32(this.autoUpdateTime.Text);
- this.autoUpdateTimer.Enabled = true;
- }
- else
- {
- this.autoUpdateTimer.Enabled = false;
- }
- }
- private void startDebug_Click(object sender, EventArgs e)
- {
- this.debugShit();
- }
- private void startSearching(int mode)
- {
- if (!this.searchWorker.IsBusy)
- {
- this.stopWatch = new Stopwatch();
- this.stopWatch.Start();
- this.refreshBtn.Image = Resources.loading1;
- this.btnSearch.Enabled = false;
- this.searchResult.Enabled = false;
- byte[] buffer = this.getBytesByInput(this.searchStartTxt.Text);
- byte[] buffer2 = this.getBytesByInput(this.searchEndTxt.Text);
- string str = this.getSearchValue(this.searchStartTxt.Text);
- string str2 = this.getSearchValue(this.searchEndTxt.Text);
- int selectedIndex = this.comboMode.SelectedIndex;
- object[] argument = new object[] { mode, this.startRangeTxt.Text, this.endRangeTxt.Text, this.PS3, buffer, buffer2, str, str2, selectedIndex, this.resultOffsetList };
- this.searchWorker.RunWorkerAsync(argument);
- }
- else
- {
- MessageBox.Show("Wait until search/refresh is finished");
- }
- }
- public static byte[] StringToByteArray(string hex)
- {
- if ((hex.Length % 2) != 0)
- {
- hex = "0" + hex;
- }
- int length = hex.Length;
- byte[] buffer = new byte[length / 2];
- for (int i = 0; i < length; i += 2)
- {
- buffer[i / 2] = Convert.ToByte(hex.Substring(i, 2), 0x10);
- }
- return buffer;
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- if (!File.Exists(Directory.GetCurrentDirectory() + "/CCAPI.DLL"))
- {
- CCAPIno CCno = new CCAPIno();
- ipaddress.Enabled = false;
- this.radioTMAPI.Checked = true;
- CCno.Show();
- }
- else
- {
- ipaddress.Enabled = true;
- this.radioCCAPI.Checked = true;
- }
- }
- private void metroRadioButton1_CheckedChanged(object sender, EventArgs e)
- {
- if (!File.Exists(Directory.GetCurrentDirectory() + "/CCAPI.DLL"))
- {
- }
- else
- {
- this.PS3.ChangeAPI(SelectAPI.ControlConsole);
- ipaddress.Enabled = true;
- }
- }
- private void metroRadioButton2_CheckedChanged(object sender, EventArgs e)
- {
- if (radioTMAPI.Checked)
- {
- this.PS3.ChangeAPI(SelectAPI.TargetManager);
- }
- else
- {
- if (!File.Exists(Directory.GetCurrentDirectory() + "/CCAPI.DLL"))
- {
- CCAPIno CCno = new CCAPIno();
- ipaddress.Enabled = false;
- this.radioTMAPI.Checked = true;
- CCno.Show();
- }
- else
- {
- // this.rbtnTMAPI.Checked = true;
- }
- }
- }
- private void metroButton1_Click(object sender, EventArgs e)
- {
- if (!"Disconnect".Equals(this.btnConnection.Text))
- {
- if (this.PS3.ConnectTarget(0))
- {
- this.connectedLbl.Text = "Connected!";
- this.connectedLbl.ForeColor = Color.Orange;
- if (this.PS3.AttachProcess())
- {
- this.connectedLbl.Text = "Attached!";
- this.connectedLbl.ForeColor = Color.Green;
- this.btnConnection.Text = "Disconnect";
- }
- else
- {
- this.connectedLbl.Text = "Game Started?";
- this.connectedLbl.ForeColor = Color.OrangeRed;
- }
- }
- else
- {
- this.connectedLbl.Text = "Couldn't Connect!";
- this.connectedLbl.ForeColor = Color.Red;
- }
- }
- else
- {
- this.PS3.DisconnectTarget();
- this.btnConnection.Text = "Connect / Attach";
- this.connectedLbl.Text = "Disconnected";
- this.connectedLbl.ForeColor = Color.Black;
- }
- }
- [DllImport("User32.dll")]
- public static extern int SendMessage(IntPtr hWnd, uint msg, IntPtr wParam, IntPtr lParam);
- private void metroButton1_Click_1(object sender, EventArgs e)
- {
- int fromBase = 10;
- if (this.dexHexCombo.SelectedIndex == 0)
- {
- fromBase = 10;
- }
- else
- {
- fromBase = 0x10;
- }
- try
- {
- switch (this.comboByteLength.SelectedIndex)
- {
- case 0:
- this.PS3.Extension.WriteSByte(Convert.ToUInt32(this.offsetTxt.Text, 0x10), Convert.ToSByte(this.resultTxt.Text, fromBase));
- return;
- case 1:
- this.PS3.Extension.WriteInt16(Convert.ToUInt32(this.offsetTxt.Text, 0x10), Convert.ToInt16(this.resultTxt.Text, fromBase));
- return;
- case 2:
- this.PS3.Extension.WriteInt32(Convert.ToUInt32(this.offsetTxt.Text, 0x10), Convert.ToInt32(this.resultTxt.Text, fromBase));
- return;
- case 3:
- this.PS3.Extension.WriteString(Convert.ToUInt32(this.offsetTxt.Text, 0x10), this.resultTxt.Text);
- return;
- }
- }
- catch (Exception)
- {
- MessageBox.Show("Unexpected error ocurred. Please check your Input.");
- }
- }
- private void metroButton2_Click(object sender, EventArgs e)
- {
- switch (this.comboByteLength.SelectedIndex)
- {
- case 0:
- this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadByte(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
- return;
- case 1:
- this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadUInt16(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
- return;
- case 2:
- this.resultTxt.Text = Convert.ToString(this.PS3.Extension.ReadUInt32(Convert.ToUInt32(this.offsetTxt.Text, 0x10)));
- return;
- case 3:
- this.resultTxt.Text = this.PS3.Extension.ReadString(Convert.ToUInt32(this.offsetTxt.Text, 0x10));
- return;
- }
- }
- private void offsetTxt_TextChanged(object sender, EventArgs e)
- {
- }
- private void comboByteLength_SelectedIndexChanged(object sender, EventArgs e)
- {
- }
- private void resultTxt_TextChanged(object sender, EventArgs e)
- {
- }
- private void dexHexCombo_SelectedIndexChanged(object sender, EventArgs e)
- {
- }
- private void metroTextBox1_Click(object sender, EventArgs e)
- {
- }
- private void pnlConnection_Paint(object sender, PaintEventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement