예제 #1
0
        private void cmsCheatListHex_Click(object sender, EventArgs e)
        {
            if (lvCheatList.SelectedRows == null)
            {
                return;
            }

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

            DataGridViewSelectedRowCollection items = lvCheatList.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);
                FrmHexEditor hexEdit = new FrmHexEditor(memoryHelper, offset, section);
                hexEdit.Show(this);
            }
        }
예제 #2
0
        private void cmsSectionMenuHex_Click(object sender, EventArgs e)
        {
            int sectionID = -1;
            int offset    = 0;

            sectionID = lstSection.SelectedIndex;

            if (sectionID >= 0)
            {
                MappedSection section = processManager.MappedSectionList[sectionID];
                FrmHexEditor  hexEdit = new FrmHexEditor(memoryHelper, offset, section);
                hexEdit.Show(this);
            }
        }
예제 #3
0
        private void cmsResultMenuHex_Click(object sender, EventArgs e)
        {
            if (lvResult.SelectedItems.Count == 1)
            {
                ListView.SelectedListViewItemCollection items = lvResult.SelectedItems;

                ulong address = ulong.Parse(lvResult.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);
                    FrmHexEditor hexEdit = new FrmHexEditor(memoryHelper, offset, section);
                    hexEdit.Show(this);
                }
            }
        }