Ejemplo n.º 1
0
        public override void SetRuntime(CheatOperator SourceCheatOperator, int idx = 0)
        {
            byte[] buf = new byte[MemoryHelper.Length];
            Buffer.BlockCopy(SourceCheatOperator.GetRuntime(), 0, buf, 0, MemoryHelper.Length);

            MemoryHelper.WriteMemory(GetAddress(), buf);
        }
Ejemplo n.º 2
0
        private void commit_btn_Click(object sender, EventArgs e)
        {
            MemoryViewByteProvider mvbp = (MemoryViewByteProvider)this.hexBox.ByteProvider;

            if (mvbp.HasChanges())
            {
                byte[]     buffer      = mvbp.Bytes.ToArray();
                List <int> change_list = mvbp.change_list;

                for (int i = 0; i < change_list.Count; ++i)
                {
                    byte[] b = { buffer[change_list[i]] };
                    memoryHelper.WriteMemory(section.Start + (ulong)(page * page_size + change_list[i]), b);
                }
                mvbp.change_list.Clear();
            }
        }
Ejemplo n.º 3
0
        public bool WriteData(int index, bool reset)
        {
            ulong     address = this.getAddress();
            BatchCode code    = Codes[index];

            if (reset && string.IsNullOrEmpty(code.reset))
            {
                return(true);
            }
            byte[] data   = this.GetData(index, reset);
            int    offset = code.offset;

            address = address + (ulong)offset;
            if (CheatList.IS_DEV)
            {
            }
            else
            {
                MemoryHelper.WriteMemory(address, data);
            }
            return(true);
        }
Ejemplo n.º 4
0
 public override void SetRuntime(CheatOperator SourceCheatOperator, int idx = 0)
 {
     MemoryHelper.WriteMemory(Address, SourceCheatOperator.GetRuntime());
 }