ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater/Main.cs
(Generate patch)

Comparing trunk/RomCheater/Main.cs (file contents):
Revision 85 by william, Wed May 9 17:48:15 2012 UTC vs.
Revision 86 by william, Wed May 9 19:41:06 2012 UTC

--- trunk/RomCheater/Main.cs	2012/05/09 18:13:51	85
+++ trunk/RomCheater/Main.cs	2012/05/09 19:41:06	86
@@ -10,11 +10,13 @@ using RomCheater.Logging;
 using RomCheater.Properties;
 using RomCheater.UserSettingsSupport;
 using RomCheater.PluginFramework.Core;
+using System.Diagnostics;
 
 namespace RomCheater
 {
     public partial class Main : Form
     {
+        PluginLoader loader = null;
         static Main()
         {
             SettingSubscriber.AddSubscriber(Settings.Default);
@@ -55,19 +57,19 @@ namespace RomCheater
 
         private void Main_Load(object sender, EventArgs e)
         {
-            PluginLoader loader = new PluginLoader();
-            loader.LoadPlugins();
+            loader = new PluginLoader();
+            loader.LoadPlugins();            
         }
 
         private void mnuItemConfig_Click(object sender, EventArgs e)
         {
-            RomCheaterConfigDialog dlg = new RomCheaterConfigDialog();
+            RomCheaterConfigDialog dlg = new RomCheaterConfigDialog(loader);
             dlg.ShowDialog();
         }
 
         private void mnuItemOpenProcess_Click(object sender, EventArgs e)
         {
-
+            //List<Process> procs = loader.LoadedConfigPlugins[0].ValidProcessesForPlugin;
         }
     }
 }