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

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

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

--- trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/04 22:38:40	511
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/04 23:40:45	512
@@ -1742,18 +1742,18 @@
                                 double double_percent_done = 100.0 * (double)((double)CurrentIndex / (double)e.TotalCount);
                                 int int_percent_done = (int)double_percent_done;
 
-                                //int align_base = 1000;
-                                //int align_magnitude = 1;
-                                //int alignment = align_base * align_magnitude;
-                                //if (int_percent_done != Last_Whole_Percent_Done && (CurrentIndex % alignment) == 0)
-                                //{
-                                //    if (int_percent_done <= 100)
-                                //    {
-                                new Action<int, string>(UpdateProgress).Invoke(int_percent_done, string.Format(" -> Reading Address: 0x{0:x8}", (CurrentIndex + MemoryRangeStart)));
-                                //        Last_Whole_Percent_Done = int_percent_done;
-                                //    }
-                                //    if (SearchWorkerThread.CancellationPending) { e.Canceled = true; return; }
-                                //}
+                                int align_base = 1000;
+                                int align_magnitude = 1;
+                                int alignment = align_base * align_magnitude;
+                                if (int_percent_done != Last_Whole_Percent_Done && (CurrentIndex % alignment) == 0)
+                                {
+                                    if (int_percent_done <= 100)
+                                    {
+                                        new Action<int, string>(UpdateProgress).Invoke(int_percent_done, string.Format(" -> Reading Address: 0x{0:x8}", (CurrentIndex + MemoryRangeStart)));
+                                        Last_Whole_Percent_Done = int_percent_done;
+                                    }
+                                    if (SearchWorkerThread.CancellationPending) { e.Canceled = true; return; }
+                                }
                             }
                             uint size = 0;
                             BitTools.SizeOf(sdt, out size);

 

  ViewVC Help
Powered by ViewVC 1.1.22