ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Docking/FloatingRamDumperDialog.cs
(Generate patch)

Comparing trunk/RomCheater/Docking/FloatingRamDumperDialog.cs (file contents):
Revision 156 by william, Mon May 28 04:14:03 2012 UTC vs.
Revision 157 by william, Mon May 28 04:20:13 2012 UTC

# Line 9 | Line 9 | using System.Windows.Forms;
9   using WeifenLuo.WinFormsUI.Docking;
10   using RomCheater.PluginFramework.Interfaces;
11   using System.Diagnostics;
12 + using System.IO;
13  
14   namespace RomCheater.Docking
15   {
# Line 166 | Line 167 | namespace RomCheater.Docking
167              int bytesReadSize;
168              byte[] data = reader.ReadProcessMemory((IntPtr)(uint)start, count, out bytesReadSize);
169              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
179      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines