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

Comparing trunk/RomCheater/Docking/UI/UIMemoryViewer.cs (file contents):
Revision 351 by william, Sat Jun 9 20:52:19 2012 UTC vs.
Revision 352 by william, Sat Jun 9 21:11:02 2012 UTC

--- trunk/RomCheater/Docking/UI/UIMemoryViewer.cs	2012/06/09 20:52:19	351
+++ trunk/RomCheater/Docking/UI/UIMemoryViewer.cs	2012/06/09 21:11:02	352
@@ -356,12 +356,13 @@ namespace RomCheater.Docking.UI
                 provider.OpenProvider();
                 int bytesReadSize;
 
-                for (int i = 0; i < data.Length; i ++)
-                {
-                    int addr = (int)(start_address + i);
-                    byte data_to_write = data[i];
-                    provider.WriteProcessMemory(addr, data_to_write, out bytesReadSize);
-                }
+                provider.WriteProcessMemory(start_address, data, out bytesReadSize);
+                //for (int i = 0; i < data.Length; i ++)
+                //{
+                //    int addr = (int)(start_address + i);
+                //    byte data_to_write = data[i];
+                    
+                //}
                 provider.CloseProvider();
             }
             catch (Exception ex) { logger.Error.WriteLine("{0}.WriteCurrentBytes():{1}{2}", this.GetType().Name, System.Environment.NewLine, ex.ToString()); }