/[RomCheater]/trunk/RomCheater/Main.cs
ViewVC logotype

Diff of /trunk/RomCheater/Main.cs

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

--- 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.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 @@
 
         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;
         }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22