/[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/06 04:16:36	562
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/06 04:31:07	563
@@ -1572,11 +1572,12 @@
                                 int int_percent_done = (int)double_percent_done;
                                 if ((int_percent_done != Last_Whole_Percent_Done))// && (i % 10000) == 0)
                                 {
-                                    UpdateProgress((int)double_percent_done, message);
+                                    UpdateProgress(int_percent_done, message);
                                     Last_Whole_Percent_Done = int_percent_done;
                                 }
 
                                 uint address_index = i;
+                                int inner_Last_Whole_Percent_Done = 0;
                                 #region comparison and serialization
                                 switch (sdt)
                                 {
@@ -1587,6 +1588,14 @@
                                             var t_data = data;
                                             foreach (var Value in t_data)
                                             {
+                                                string inner_message = string.Format(" -> Parsing value @ Address: 0x{0:x8}", address_index);
+                                                double inner_double_percent_done = 100.0 * (double)((double)address_index / (double)reader_addresses.Length);
+                                                int inner_int_percent_done = (int)inner_double_percent_done;
+                                                if ((inner_int_percent_done != inner_Last_Whole_Percent_Done))// && (address_index % 10000) == 0)
+                                                {
+                                                    UpdateProgress(inner_int_percent_done, inner_message);
+                                                    inner_Last_Whole_Percent_Done = inner_int_percent_done;
+                                                }
                                                 if (SearchWorkerThread.CancellationPending) { break; }
                                                 if (!reader_addresses.Contains(address_index))
                                                 {
@@ -1633,6 +1642,14 @@
                                             var t_data = data;
                                             foreach (var Value in t_data)
                                             {
+                                                string inner_message = string.Format(" -> Parsing value @ Address: 0x{0:x8}", address_index);
+                                                double inner_double_percent_done = 100.0 * (double)((double)address_index / (double)reader_addresses.Length);
+                                                int inner_int_percent_done = (int)inner_double_percent_done;
+                                                if ((inner_int_percent_done != inner_Last_Whole_Percent_Done))// && (address_index % 10000) == 0)
+                                                {
+                                                    UpdateProgress(inner_int_percent_done, inner_message);
+                                                    inner_Last_Whole_Percent_Done = inner_int_percent_done;
+                                                }
                                                 if (SearchWorkerThread.CancellationPending) { break; }
                                                 if (!reader_addresses.Contains(address_index))
                                                 {
@@ -1680,6 +1697,14 @@
                                             var t_data = BitTools.ConvertByteArray<ushort>(data, new Func<bool>(ShouldCancelAnySearchOperation));
                                             foreach (var Value in t_data)
                                             {
+                                                string inner_message = string.Format(" -> Parsing value @ Address: 0x{0:x8}", address_index);
+                                                double inner_double_percent_done = 100.0 * (double)((double)address_index / (double)reader_addresses.Length);
+                                                int inner_int_percent_done = (int)inner_double_percent_done;
+                                                if ((inner_int_percent_done != inner_Last_Whole_Percent_Done))// && (address_index % 10000) == 0)
+                                                {
+                                                    UpdateProgress(inner_int_percent_done, inner_message);
+                                                    inner_Last_Whole_Percent_Done = inner_int_percent_done;
+                                                }
                                                 if (SearchWorkerThread.CancellationPending) { break; }
                                                 if (!reader_addresses.Contains(address_index))
                                                 {
@@ -1726,6 +1751,14 @@
                                             var t_data = BitTools.ConvertByteArray<short>(data, new Func<bool>(ShouldCancelAnySearchOperation));
                                             foreach (var Value in t_data)
                                             {
+                                                string inner_message = string.Format(" -> Parsing value @ Address: 0x{0:x8}", address_index);
+                                                double inner_double_percent_done = 100.0 * (double)((double)address_index / (double)reader_addresses.Length);
+                                                int inner_int_percent_done = (int)inner_double_percent_done;
+                                                if ((inner_int_percent_done != inner_Last_Whole_Percent_Done))// && (address_index % 10000) == 0)
+                                                {
+                                                    UpdateProgress(inner_int_percent_done, inner_message);
+                                                    inner_Last_Whole_Percent_Done = inner_int_percent_done;
+                                                }
                                                 if (SearchWorkerThread.CancellationPending) { break; }
                                                 if (!reader_addresses.Contains(address_index))
                                                 {
@@ -1773,6 +1806,14 @@
                                             var t_data = BitTools.ConvertByteArray<uint>(data, new Func<bool>(ShouldCancelAnySearchOperation));
                                             foreach (var Value in t_data)
                                             {
+                                                string inner_message = string.Format(" -> Parsing value @ Address: 0x{0:x8}", address_index);
+                                                double inner_double_percent_done = 100.0 * (double)((double)address_index / (double)reader_addresses.Length);
+                                                int inner_int_percent_done = (int)inner_double_percent_done;
+                                                if ((inner_int_percent_done != inner_Last_Whole_Percent_Done))// && (address_index % 10000) == 0)
+                                                {
+                                                    UpdateProgress(inner_int_percent_done, inner_message);
+                                                    inner_Last_Whole_Percent_Done = inner_int_percent_done;
+                                                }
                                                 if (SearchWorkerThread.CancellationPending) { break; }
                                                 if (!reader_addresses.Contains(address_index))
                                                 {
@@ -1819,6 +1860,14 @@
                                             var t_data = BitTools.ConvertByteArray<int>(data, new Func<bool>(ShouldCancelAnySearchOperation));
                                             foreach (var Value in t_data)
                                             {
+                                                string inner_message = string.Format(" -> Parsing value @ Address: 0x{0:x8}", address_index);
+                                                double inner_double_percent_done = 100.0 * (double)((double)address_index / (double)reader_addresses.Length);
+                                                int inner_int_percent_done = (int)inner_double_percent_done;
+                                                if ((inner_int_percent_done != inner_Last_Whole_Percent_Done))// && (address_index % 10000) == 0)
+                                                {
+                                                    UpdateProgress(inner_int_percent_done, inner_message);
+                                                    inner_Last_Whole_Percent_Done = inner_int_percent_done;
+                                                }
                                                 if (SearchWorkerThread.CancellationPending) { break; }
                                                 if (!reader_addresses.Contains(address_index))
                                                 {
@@ -1866,6 +1915,14 @@
                                             var t_data = BitTools.ConvertByteArray<ulong>(data, new Func<bool>(ShouldCancelAnySearchOperation));
                                             foreach (var Value in t_data)
                                             {
+                                                string inner_message = string.Format(" -> Parsing value @ Address: 0x{0:x8}", address_index);
+                                                double inner_double_percent_done = 100.0 * (double)((double)address_index / (double)reader_addresses.Length);
+                                                int inner_int_percent_done = (int)inner_double_percent_done;
+                                                if ((inner_int_percent_done != inner_Last_Whole_Percent_Done))// && (address_index % 10000) == 0)
+                                                {
+                                                    UpdateProgress(inner_int_percent_done, inner_message);
+                                                    inner_Last_Whole_Percent_Done = inner_int_percent_done;
+                                                }
                                                 if (SearchWorkerThread.CancellationPending) { break; }
                                                 if (!reader_addresses.Contains(address_index))
                                                 {
@@ -1912,6 +1969,14 @@
                                             var t_data = BitTools.ConvertByteArray<long>(data, new Func<bool>(ShouldCancelAnySearchOperation));
                                             foreach (var Value in t_data)
                                             {
+                                                string inner_message = string.Format(" -> Parsing value @ Address: 0x{0:x8}", address_index);
+                                                double inner_double_percent_done = 100.0 * (double)((double)address_index / (double)reader_addresses.Length);
+                                                int inner_int_percent_done = (int)inner_double_percent_done;
+                                                if ((inner_int_percent_done != inner_Last_Whole_Percent_Done))// && (address_index % 10000) == 0)
+                                                {
+                                                    UpdateProgress(inner_int_percent_done, inner_message);
+                                                    inner_Last_Whole_Percent_Done = inner_int_percent_done;
+                                                }
                                                 if (SearchWorkerThread.CancellationPending) { break; }
                                                 if (!reader_addresses.Contains(address_index))
                                                 {

 

  ViewVC Help
Powered by ViewVC 1.1.22