/[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

revision 515 by william, Wed Jun 5 02:02:08 2013 UTC revision 516 by william, Wed Jun 5 03:23:27 2013 UTC
# Line 1438  namespace RomCheater.Docking Line 1438  namespace RomCheater.Docking
1438                      int int_percent_done = (int)double_percent_done;                      int int_percent_done = (int)double_percent_done;
1439    
1440                      //int align_base = 1000;                      //int align_base = 1000;
1441                      //int align_magnitude = 1000;                      //int align_magnitude = 1;
1442                      //int alignment = align_base * align_magnitude;                      //int alignment = align_base * align_magnitude;
1443                      //if (int_percent_done != Last_Whole_Percent_Done && (CurrentIndex % alignment) == 0)                      if ((int_percent_done != Last_Whole_Percent_Done) )// && (CurrentIndex % alignment) == 0)
                     if (int_percent_done != Last_Whole_Percent_Done)// && (CurrentIndex % alignment) == 0)  
1444                      {                      {
1445                          if (int_percent_done <= 100)                          if (int_percent_done <= 100)
1446                          {                          {
1447                              string message = string.Format(" -> Reading Address: 0x{0:x8} - 0x{1:x8}", (CurrentIndex + MemoryRangeStart), (CurrentIndex + MemoryRangeStart) + e.Data.Length);                              string message = string.Format(" -> Reading Address: 0x{0:x8} of 0x{1:x8}", (CurrentIndex + MemoryRangeStart), (CurrentIndex + MemoryRangeStart) + e.Data.Length);
1448                              //UpdateProgress(int_percent_done, message);                              //UpdateProgress(int_percent_done, message);
1449                              new Action<int, string>(UpdateProgress).Invoke(int_percent_done, message);                              new Action<int, string>(UpdateProgress).Invoke(int_percent_done, message);
1450                              Last_Whole_Percent_Done = int_percent_done;                              Last_Whole_Percent_Done = int_percent_done;
# Line 1453  namespace RomCheater.Docking Line 1452  namespace RomCheater.Docking
1452                          if (SearchWorkerThread.CancellationPending) { e.Canceled = true; return; }                          if (SearchWorkerThread.CancellationPending) { e.Canceled = true; return; }
1453                      }                      }
1454                  }                  }
1455    
1456                  using (MemoryStream ms = new MemoryStream(e.Data))                  using (MemoryStream ms = new MemoryStream(e.Data))
1457                  {                  {
1458                      using (BinaryReader br = new BinaryReader(ms))                      using (BinaryReader br = new BinaryReader(ms))

Legend:
Removed from v.515  
changed lines
  Added in v.516

  ViewVC Help
Powered by ViewVC 1.1.22