/[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/03 03:00:13	460
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2013/06/03 03:24:07	461
@@ -64,6 +64,12 @@
         public FloatingMemorySearcher(IConfigPlugin config) : this() { this.AcceptedPlugin = config; }
         public FloatingMemorySearcher(IConfigPlugin config, Process process) : this() { this.AcceptedPlugin = config; this.AcceptedProcess = process; }
 
+        private void UpdateProgress(int value, string message)
+        {
+            resultsprogress.Value = value;
+            resultsprogress.Message = message;
+        }
+
         #region IAcceptsProcess<Process> Members
         private Process _AcceptedProcess;
         public Process AcceptedProcess { get { return _AcceptedProcess; } set { _AcceptedProcess = value; UpdateAcceptedProcess(value); } }
@@ -1459,7 +1465,7 @@
                             Guid new_SearchGuid = new Guid(guid);
                             provider.OpenProvider();
                             provider.OnBytesRead += new BaseEventHandler<OnBytesReadEventArgs>(search_provider_OnBytesRead);
-                            foreach (var item in reader.GetResults(SearchArgs, (IAcceptsProcessAndConfig)this, resultsprogress))
+                            foreach (var item in reader.GetResults(SearchArgs.IsUnsignedDataType, SearchArgs.DataType, new Action<int, string>(UpdateProgress)))
                             {
                                 using (SearchResultWriter writer = new SearchResultWriter((int)(reader.ResultCount), new_SearchGuid))
                                 {
@@ -1509,7 +1515,7 @@
                                     {
 
                                         #region new comparator-support
-                                        second_tmp_Results = new List<ResultType<object>>(reader.GetResults(SearchArgs, (IAcceptsProcessAndConfig)this, resultsprogress));
+                                        second_tmp_Results = new List<ResultType<object>>(reader.GetResults(SearchArgs.IsUnsignedDataType, SearchArgs.DataType, new Action<int, string>(UpdateProgress)));
                                         #endregion
 
                                         #region USE_OLD_SEARCH_RESULTS_COMPRATOR_CODE
@@ -2111,7 +2117,7 @@
                     //    if (!items.Contains(item))
                     //        items.Add(item);
                     //}
-                    lstResults.Items.AddRange(reader.GetResultItems(SearchArgs, (IAcceptsProcessAndConfig)this, resultsprogress));
+                    lstResults.Items.AddRange(reader.GetResultItems(SearchArgs.IsUnsignedDataType, SearchArgs.DataType, new Action<int, string>(UpdateProgress)));
                 }
             }
 

 

  ViewVC Help
Powered by ViewVC 1.1.22