/[RomCheater]/trunk/RomCheater/Docking/UI/UIMemoryViewer.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/UI/UIMemoryViewer.cs

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

--- 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 @@
                 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()); }

 

  ViewVC Help
Powered by ViewVC 1.1.22