9 |
using WeifenLuo.WinFormsUI.Docking; |
using WeifenLuo.WinFormsUI.Docking; |
10 |
using RomCheater.PluginFramework.Interfaces; |
using RomCheater.PluginFramework.Interfaces; |
11 |
using System.Diagnostics; |
using System.Diagnostics; |
12 |
|
using System.IO; |
13 |
|
|
14 |
namespace RomCheater.Docking |
namespace RomCheater.Docking |
15 |
{ |
{ |
167 |
int bytesReadSize; |
int bytesReadSize; |
168 |
byte[] data = reader.ReadProcessMemory((IntPtr)(uint)start, count, out bytesReadSize); |
byte[] data = reader.ReadProcessMemory((IntPtr)(uint)start, count, out bytesReadSize); |
169 |
reader.CloseHandle(); |
reader.CloseHandle(); |
170 |
|
using (FileStream fs = new FileStream(filename, FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite)) |
171 |
|
{ |
172 |
|
BinaryWriter bw = new BinaryWriter(fs); |
173 |
|
foreach (byte b in data) { bw.Write(b); } |
174 |
|
bw.Flush(); |
175 |
|
bw.Close(); |
176 |
|
} |
177 |
} |
} |
178 |
#endregion |
#endregion |
179 |
} |
} |