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

Comparing trunk/RomCheater.CorePlugins/Config/GenericConfig.cs (file contents):
Revision 81 by william, Wed May 9 17:17:19 2012 UTC vs.
Revision 83 by william, Wed May 9 17:48:15 2012 UTC

--- trunk/RomCheater.CorePlugins/Config/GenericConfig.cs	2012/05/09 17:17:19	81
+++ trunk/RomCheater.CorePlugins/Config/GenericConfig.cs	2012/05/09 17:48:15	83
@@ -3,11 +3,30 @@ using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using RomCheater.PluginFramework.Core;
+using System.Diagnostics;
 
 namespace RomCheater.CorePlugins.Config
 {
-    public class GenericConfig : ConfigPlugin
+    public sealed class GenericConfig : ConfigPlugin
     {
         public GenericConfig() : base() { }
+
+        private void init()
+        {
+            this.ValidProcessesForPlugin = new List<Process>();
+
+            Process[] procs = Process.GetProcesses();
+            this.ValidProcessesForPlugin = new List<Process>(procs);
+        }
+        #region IPluginBase Members
+        public override string Name
+        {
+            get { return "Generic Configuration Plugin"; }
+        }
+        public override string Description
+        {
+            get { return "This plugin provides a generic configuration"; }
+        }
+        #endregion
     }
 }