Esempio n. 1
0
        private void cheat_list_item_hex_view_Click(object sender, EventArgs e)
        {
            if (cheat_list_view.SelectedRows == null)
            {
                return;
            }

            if (cheat_list_view.SelectedRows.Count != 1)
            {
                return;
            }

            DataGridViewSelectedRowCollection items = cheat_list_view.SelectedRows;

            ulong address   = ulong.Parse((string)items[0].Cells[CHEAT_LIST_ADDRESS].Value, NumberStyles.HexNumber);
            int   sectionID = processManager.MappedSectionList.GetMappedSectionID(address);

            if (sectionID >= 0)
            {
                int offset = 0;

                MappedSection section = processManager.MappedSectionList[sectionID];

                offset = (int)(address - section.Start);
                HexEditor hexEdit = new HexEditor(memoryHelper, offset, section);
                hexEdit.Show(this);
            }
        }
Esempio n. 2
0
        private void sectionView_Click(object sender, EventArgs e)
        {
            int sectionID = -1;
            int offset    = 0;

            sectionID = section_list_box.SelectedIndex;

            if (sectionID >= 0)
            {
                MappedSection section = processManager.MappedSectionList[sectionID];
                HexEditor     hexEdit = new HexEditor(memoryHelper, offset, section);
                hexEdit.Show(this);
            }
        }
Esempio n. 3
0
        private void result_list_view_hex_item_Click(object sender, EventArgs e)
        {
            if (result_list_view.SelectedItems.Count == 1)
            {
                ListView.SelectedListViewItemCollection items = result_list_view.SelectedItems;

                ulong address = ulong.Parse(result_list_view.SelectedItems[0].
                                            SubItems[RESULT_LIST_ADDRESS].Text, NumberStyles.HexNumber);
                int sectionID = processManager.MappedSectionList.GetMappedSectionID(address);

                if (sectionID >= 0)
                {
                    int offset = 0;

                    MappedSection section = processManager.MappedSectionList[sectionID];

                    offset = (int)(address - section.Start);
                    HexEditor hexEdit = new HexEditor(memoryHelper, offset, section);
                    hexEdit.Show(this);
                }
            }
        }