예제 #1
0
        private void Entry_MagicButton_Click(Object sender, EventArgs e)
        {
            BasicEditor editor = new BasicEditor();

            Program.Core.Core_OpenEditor(editor);

            Pointer address = CurrentAddress;
            int     length  = CurrentModule.EntryLength;

            editor.Core_SetEntry(address, length, (length > 0 ? Core.ReadData(address, length) : null));
        }
예제 #2
0
        private void MagicButton_Click(Object sender, EventArgs e)
        {
            HexBox hexbox = CurrentTabIsROM() ?
                            MainHexBox :
                            FileHexBoxes[CurrentTab];
            BasicEditor editor = new BasicEditor();

            Program.Core.Core_OpenEditor(editor);

            Pointer address = new Pointer((uint)hexbox.SelectionStart);
            int     length  = (int)hexbox.SelectionLength;

            editor.Core_SetEntry(address, length, (length > 0 ? Core.ReadData(address, length) : null));
        }