/[RomCheater]/trunk/RomCheater.RVAScratchPad/Form1.cs
ViewVC logotype

Diff of /trunk/RomCheater.RVAScratchPad/Form1.cs

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

--- trunk/RomCheater.RVAScratchPad/Form1.cs	2013/06/18 10:25:55	713
+++ trunk/RomCheater.RVAScratchPad/Form1.cs	2013/06/18 10:51:47	715
@@ -62,34 +62,12 @@
         {
             loader = new PluginLoader();
             loader.LoadPlugins(silent);
-
-
-            ConfigPlugin = loader.GetGenericConfigPlugin();
-            if (ConfigPlugin != null && !silent)
-                logger.Info.WriteLine("Loaded Config Plugin: {0}", ConfigPlugin.ToString());
-
-            //var UserControlPlugins = new List<IUserControlPlugin>(loader.LoadedUserControlPlugins);
-            //foreach (var userplugin in UserControlPlugins) { }
-
-
-            //var config_guids = loader.GetKnownPluginGuids<IConfigPlugin>();
-            //var input_guids = loader.GetKnownPluginGuids<IInputPlugin>();
-            //var window_guids = loader.GetKnownPluginGuids<IWindowPlugin>();
-            //var userplugin_guids = loader.GetKnownPluginGuids<IUserControlPlugin>();
-            //var plugin1 = loader.GetPluginByName<IUserControlPlugin>("ScratchPad Plugin");
-            //var plugin2 = loader.GetPluginByName<IUserControlPlugin>("RVA Calculator Plugin");
-
-
-            //var plugin1 = PluginCollection.UserControlPlugins.CheatCodePlugin.Plugin;
-            //var plugin2 = PluginCollection.UserControlPlugins.EmuMMAPPlugin.Plugin;
-            //var plugin3 = PluginCollection.UserControlPlugins.RVACalculatorPlugin.Plugin;
-            //var plugin4 = PluginCollection.UserControlPlugins.ScratchPadPlugin.Plugin;
-
-            //var plugin1 = PluginCollection.GetPluginByName(PluginNames.ScratchPadPlugin);
-            //var plugin2 = PluginCollection.GetPluginByName(PluginNames.RVACalculatorPlugin);            
-
-            var plugins = PluginCollection.GetPluginsByType(PluginType.Window);
-
+            var config = PluginCollection.GetPluginByName(PluginNames.GenericConfig);
+            var scratchpad = PluginCollection.GetPluginByName(PluginNames.ScratchPadPlugin);
+            var rvacalc = PluginCollection.GetPluginByName(PluginNames.RVACalculatorPlugin);
+            ConfigPlugin = loader.GetPluginByGuid<IConfigPlugin>(config.ID.ToString());
+            ScratchPadPlugin = loader.GetPluginByGuid<IUserControlPlugin>(scratchpad.ID.ToString());
+            RVACalcPlugin = loader.GetPluginByGuid<IUserControlPlugin>(rvacalc.ID.ToString());
         }
 
 

 

  ViewVC Help
Powered by ViewVC 1.1.22