/[RomCheater]/trunk/RomCheater.PluginFramework/Core/ScratchPad.cs
ViewVC logotype

Diff of /trunk/RomCheater.PluginFramework/Core/ScratchPad.cs

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

--- trunk/RomCheater.PluginFramework/Core/ScratchPad.cs	2013/06/17 09:31:52	686
+++ trunk/RomCheater.PluginFramework/Core/ScratchPad.cs	2013/06/17 10:02:53	689
@@ -45,7 +45,21 @@
             this.plugin.OnSelectedProcessChanged += new BaseEventHandler<ProcessChangedEventArgs>(plugin_OnSelectedProcessChanged);
             this.plugin.OnSelectedConfigChanged += new BaseEventHandler<ConfigChangedEventArgs>(plugin_OnSelectedConfigChanged);
             this.plugin.OnPEDataUpdated += new BaseEventHandler<PEViewerDataUpdatedEventArgs>(plugin_OnPEDataUpdated);
+            RaisePluginFrameworkEvents();
         }
+
+        bool EventsRaised = false;
+        private void RaisePluginFrameworkEvents()
+        {
+
+            if (this.plugin == null) { EventsRaised = true; return; }
+            if (!EventsRaised)
+            {
+                this.plugin.RaisePluginFrameworkEvents();
+                EventsRaised = true;
+            }
+        }
+
         void plugin_OnPEDataUpdated(PEViewerDataUpdatedEventArgs e)
         {
             logger.Warn.WriteLine("plugin_OnPEDataUpdated::has not been implemented!");
@@ -56,7 +70,10 @@
         }
         void plugin_OnSelectedProcessChanged(ProcessChangedEventArgs e)
         {
-            logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");
+            //logger.Warn.WriteLine("plugin_OnSelectedProcessChanged::has not been implemented!");
+
+           var list = this.plugin.QueryMemoryRegions();
+
         }
 
 

 

  ViewVC Help
Powered by ViewVC 1.1.22