コード例 #1
0
ファイル: OrbisDbg.cs プロジェクト: skiff/OrbisDbgUI
 public static void WriteFloats(ulong offset, float[] input)
 {
     byte[] buff = new byte[4];
     for (int i = 0; i < input.Length; i++)
     {
         BitConverter.GetBytes(input[i]).CopyTo(buff, 0);
         OrbisDbg.SetMemory(offset + ((uint)i * 4), buff);
     }
 }
コード例 #2
0
        private void PokeToolStripButton_Click(object sender, EventArgs e)
        {
            ulong address = Convert.ToUInt64(AddressToolStripTextBox.Text, 16);

            DynamicFileByteProvider dynamicFileByteProvider = MemoryViewHexBox.ByteProvider as DynamicFileByteProvider;

            dynamicFileByteProvider.ApplyChanges();
            OrbisDbg.SetMemory(address, MemoryData);
        }
コード例 #3
0
ファイル: OrbisDbg.cs プロジェクト: skiff/OrbisDbgUI
 public static void WriteDouble(ulong offset, double input)
 {
     byte[] buff = new byte[8];
     BitConverter.GetBytes(input).CopyTo(buff, 0);
     OrbisDbg.SetMemory(offset, buff);
 }
コード例 #4
0
ファイル: OrbisDbg.cs プロジェクト: skiff/OrbisDbgUI
 public static void WriteFloat(ulong offset, float input)
 {
     byte[] buff = new byte[4];
     BitConverter.GetBytes(input).CopyTo(buff, 0);
     OrbisDbg.SetMemory(offset, buff);
 }
コード例 #5
0
ファイル: OrbisDbg.cs プロジェクト: skiff/OrbisDbgUI
 public static void WriteUInt16(ulong offset, ushort input)
 {
     byte[] buff = new byte[2];
     BitConverter.GetBytes(input).CopyTo(buff, 0);
     OrbisDbg.SetMemory(offset, buff);
 }
コード例 #6
0
ファイル: OrbisDbg.cs プロジェクト: skiff/OrbisDbgUI
 public static void WriteString(ulong offset, string input)
 {
     byte[] buff = Encoding.UTF8.GetBytes(input);
     Array.Resize(ref buff, buff.Length + 1);
     OrbisDbg.SetMemory(offset, buff);
 }
コード例 #7
0
ファイル: OrbisDbg.cs プロジェクト: skiff/OrbisDbgUI
 public static void WriteBytes(ulong offset, byte[] input)
 {
     byte[] buff = input;
     OrbisDbg.SetMemory(offset, buff);
 }
コード例 #8
0
ファイル: OrbisDbg.cs プロジェクト: skiff/OrbisDbgUI
 public static void WriteByte(ulong offset, byte input)
 {
     byte[] buff = new byte[1];
     buff[0] = input;
     OrbisDbg.SetMemory(offset, buff);
 }
コード例 #9
0
ファイル: OrbisDbg.cs プロジェクト: skiff/OrbisDbgUI
 public static void WriteBool(ulong offset, bool input)
 {
     byte[] buff = new byte[1];
     buff[0] = input ? (byte)1 : (byte)0;
     OrbisDbg.SetMemory(offset, buff);
 }