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 86 by william, Wed May 9 19:41:06 2012 UTC

# Line 3 | Line 3 | using System.Collections.Generic;
3   using System.Linq;
4   using System.Text;
5   using RomCheater.PluginFramework.Core;
6 + using System.Diagnostics;
7  
8   namespace RomCheater.CorePlugins.Config
9   {
10 <    public class GenericConfig : ConfigPlugin
10 >    public sealed class GenericConfig : ConfigPlugin
11      {
12 <        public GenericConfig() : base() { }
12 >        public GenericConfig()
13 >            : base()
14 >        {
15 >            init();
16 >        }
17 >
18 >        private void init()
19 >        {
20 >            Process[] procs = Process.GetProcesses();
21 >            this.ValidProcessesForPlugin = new List<Process>(procs);
22 >            Guid t = this.Id;
23 >        }
24 >        #region IPluginBase Members
25 >        public override Guid Id
26 >        {
27 >            get
28 >            {
29 >                return new GuidGenerator(typeof(GenericConfig).FullName).Guid;
30 >            }
31 >        }
32 >        public override string Name
33 >        {
34 >            get { return "Generic Configuration Plugin"; }
35 >        }
36 >        public override string Description
37 >        {
38 >            get { return "This plugin provides a generic configuration"; }
39 >        }
40 >        #endregion
41      }
42   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines