/[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	2012/06/05 10:26:59	292
+++ trunk/RomCheater/Docking/FloatingMemorySearcher.cs	2012/06/05 13:42:37	305
@@ -49,23 +49,25 @@
 
         #region IAcceptsProcess<Process> Members
         private Process _AcceptedProcess;
-        public Process AcceptedProcess { get { return _AcceptedProcess; } set { _AcceptedProcess = value; UpdateAcceptedProcessAndConfig(AcceptedPlugin, value); } }
+        public Process AcceptedProcess { get { return _AcceptedProcess; } set { _AcceptedProcess = value; UpdateAcceptedProcess(value); } }
         #endregion
         #region IAcceptsPlugin<IConfigPlugin> Members
         private IConfigPlugin _AcceptedPlugin;
-        public IConfigPlugin AcceptedPlugin { get { return _AcceptedPlugin; } set { _AcceptedPlugin = value; UpdateAcceptedProcessAndConfig(value, AcceptedProcess); } }
+        public IConfigPlugin AcceptedPlugin { get { return _AcceptedPlugin; } set { _AcceptedPlugin = value; UpdateAcceptedPlugin(value); } }
         #endregion
         #region IAcceptsBrowseMemoryRegion members
         public event BaseEventHandler<BrowseMemoryRegionEvent> OnBrowseMemoryRegion;
         #endregion
 
-        private void UpdateAcceptedProcessAndConfig(IConfigPlugin config, Process process)
+        private void UpdateAcceptedPlugin(IConfigPlugin config)
         {
             this.lstResults.AcceptedPlugin = config;
-            this.lstResults.AcceptedProcess = process;
             this.lstPatchList.AcceptedPlugin = config;
+        }
+        private void UpdateAcceptedProcess(Process process)
+        {            
+            this.lstResults.AcceptedProcess = process;            
             this.lstPatchList.AcceptedProcess = process;
-
 #if USE_AUTOMATIC_MEMORY_SEARCH_RANGE && FORCE_USE_OF_MEMORYSIZECONSTANTS
             logger.Warn.WriteLine("FloatingMemorySearcher.UpdateAcceptedProcessAndConfig(IConfigPlugin config, Process process):");
             logger.Warn.WriteLine("Both USE_AUTOMATIC_MEMORY_SEARCH_RANGE and FORCE_USE_OF_MEMORYSIZECONSTANTS are defined");

 

  ViewVC Help
Powered by ViewVC 1.1.22