/[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

revision 83 by william, Wed May 9 17:48:15 2012 UTC revision 98 by william, Wed May 9 23:10:12 2012 UTC
# Line 4  using System.Linq; Line 4  using System.Linq;
4  using System.Text;  using System.Text;
5  using RomCheater.PluginFramework.Core;  using RomCheater.PluginFramework.Core;
6  using System.Diagnostics;  using System.Diagnostics;
7    using System.Security.Principal;
8    using RomCheater.Logging;
9    
10  namespace RomCheater.CorePlugins.Config  namespace RomCheater.CorePlugins.Config
11  {  {
12      public sealed class GenericConfig : ConfigPlugin      public sealed class GenericConfig : ConfigPlugin
13      {      {
14          public GenericConfig() : base() { }          public GenericConfig() : base() { }
15            public GenericConfig(bool doinit) : base(doinit) { }
16    
17          private void init()          protected override bool IsNotValidProcess(ProcContainer p)
18          {          {
19              this.ValidProcessesForPlugin = new List<Process>();              logger.Debug.WriteLine("    Allowing process {0} to be added",p.Name);
20                return false;
             Process[] procs = Process.GetProcesses();  
             this.ValidProcessesForPlugin = new List<Process>(procs);  
21          }          }
22          #region IPluginBase Members          #region IPluginBase Members
23            public override Guid ID
24            {
25                get
26                {
27                    return new GuidGenerator(typeof(GenericConfig).FullName).Guid;
28                }
29            }
30          public override string Name          public override string Name
31          {          {
32              get { return "Generic Configuration Plugin"; }              get { return "Generic Configuration Plugin"; }

Legend:
Removed from v.83  
changed lines
  Added in v.98

  ViewVC Help
Powered by ViewVC 1.1.22