/[RomCheater]/trunk/RomCheater/Docking/FloatingRamDumperDialog.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/FloatingRamDumperDialog.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 156 by william, Mon May 28 04:14:03 2012 UTC revision 157 by william, Mon May 28 04:20:13 2012 UTC
# Line 9  using System.Windows.Forms; Line 9  using System.Windows.Forms;
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  {  {
# Line 166  namespace RomCheater.Docking Line 167  namespace RomCheater.Docking
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      }      }

Legend:
Removed from v.156  
changed lines
  Added in v.157

  ViewVC Help
Powered by ViewVC 1.1.22