Exemplo n.º 1
0
        public HexEditor(MemoryHelper memoryHelper, int offset, MappedSection section)
        {
            InitializeComponent();

            this.memoryHelper = memoryHelper;
            this.section      = section;
            this.page         = offset / page_size;
            this.line         = (offset - page * page_size) / hexBox.BytesPerLine;
            this.column       = (offset - page * page_size) % hexBox.BytesPerLine;

            this.page_count = divup((int)section.Length, page_size);

            for (int i = 0; i < page_count; ++i)
            {
                ulong start = section.Start + (ulong)i * page_size;
                ulong end   = section.Start + (ulong)(i + 1) * page_size;
                page_list.Items.Add((i + 1).ToString() + String.Format(" {0:X}-{1:X}", start, end));
            }

            this.Text = LangHelper.GetLang("HexEditor");
            this.previous_btn.Text = LangHelper.GetLang("Previous");
            this.next_btn.Text     = LangHelper.GetLang("Next");
            this.refresh_btn.Text  = LangHelper.GetLang("Refresh");
            this.commit_btn.Text   = LangHelper.GetLang("Commit");
            this.find.Text         = LangHelper.GetLang("Find");
            this.cheat_btn.Text    = LangHelper.GetLang("Add Cheat");
        }
Exemplo n.º 2
0
        public NewAddress(ProcessManager ProcessManager)
        {
            InitializeComponent();

            this.MemoryHelper   = new MemoryHelper(true, 0);
            this.ProcessManager = ProcessManager;

            this.label1.Text      = LangHelper.GetLang("Address");
            this.label2.Text      = LangHelper.GetLang("Type");
            this.label3.Text      = LangHelper.GetLang("Description");
            this.label4.Text      = LangHelper.GetLang("Value");
            this.lock_box.Text    = LangHelper.GetLang("Lock");
            this.save_btn.Text    = LangHelper.GetLang("Save");
            this.cancel_btn.Text  = LangHelper.GetLang("Close");
            this.pointer_box.Text = LangHelper.GetLang("Pointer");
        }
Exemplo n.º 3
0
        public PointerFinder(main mainForm, ulong address, string dataType, ProcessManager processManager, DataGridView cheat_list_view)
        {
            MemoryHelper = new MemoryHelper(true, 0);
            MemoryHelper.InitMemoryHandler(dataType, CONSTANT.EXACT_VALUE, true);

            this.mainForm       = mainForm;
            this.address        = address;
            this.cheatList      = cheat_list_view;
            this.processManager = processManager;

            InitializeComponent();

            this.label1.Text        = LangHelper.GetLang("Address:");
            this.find_btn.Text      = LangHelper.GetLang("First Scan");
            this.next_btn.Text      = LangHelper.GetLang("Next Scan");
            this.fast_scan_box.Text = LangHelper.GetLang("FastScan");
        }
Exemplo n.º 4
0
 private void next_btn_Click(object sender, EventArgs e)
 {
     if (!Confirmation)
     {
         if (MessageBox.Show(this, LangHelper.GetLang("Verify if you're connected!"), null, MessageBoxButtons.YesNo) == DialogResult.Yes)
         {
             Confirmation = true;
             next_btn_Click(sender, e);
         }
         return;
     }
     else
     {
         ulong address = ulong.Parse(address_box.Text, System.Globalization.NumberStyles.HexNumber);
         result_counter   = 0;
         pointerList.Stop = false;
         next_pointer_finder_worker.RunWorkerAsync(new PointerFinderWorkerArgs(address, null));
         Confirmation = false;
     }
     //DoWorkEventArgs doWorkEventArgs = new DoWorkEventArgs(new PointerFinderWorkerArgs(address, null));
     //next_pointer_finder_worker_DoWork(null, doWorkEventArgs);
 }
Exemplo n.º 5
0
        private void hexBox_Parse(string strData)
        {
            string[] strs    = strData.Split(new string[] { " " }, StringSplitOptions.RemoveEmptyEntries);
            byte[]   hexData = new byte[strs.Length];
            long     index   = this.hexBox.SelectionStart;

            try
            {
                for (int i = 0; i < strs.Length; i++)
                {
                    hexData[i] = Byte.Parse(strs[i], System.Globalization.NumberStyles.HexNumber);
                }
            }
            catch (FormatException fe)
            {
                MessageBox.Show(this, String.Format(LangHelper.GetLang("Invalid Hex String: [{0}] - {1}"), strData, fe.Message));
            }
            for (int i = 0; i < hexData.Length; i++)
            {
                this.hexBox.ByteProvider.WriteByte(index++, hexData[i]);
            }
            this.hexBox.Refresh();
        }