/[RomCheater]/trunk/RomCheater.CorePlugins/Config/GenericConfig.cs
ViewVC logotype

Diff of /trunk/RomCheater.CorePlugins/Config/GenericConfig.cs

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

--- trunk/RomCheater.CorePlugins/Config/GenericConfig.cs	2012/05/09 17:17:19	81
+++ trunk/RomCheater.CorePlugins/Config/GenericConfig.cs	2012/05/09 19:41:06	86
@@ -3,11 +3,40 @@
 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() { }
+        public GenericConfig()
+            : base()
+        {
+            init();
+        }
+
+        private void init()
+        {
+            Process[] procs = Process.GetProcesses();
+            this.ValidProcessesForPlugin = new List<Process>(procs);
+            Guid t = this.Id;
+        }
+        #region IPluginBase Members
+        public override Guid Id
+        {
+            get
+            {
+                return new GuidGenerator(typeof(GenericConfig).FullName).Guid;
+            }
+        }
+        public override string Name
+        {
+            get { return "Generic Configuration Plugin"; }
+        }
+        public override string Description
+        {
+            get { return "This plugin provides a generic configuration"; }
+        }
+        #endregion
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22