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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 99 - (hide annotations) (download)
Wed May 9 23:23:38 2012 UTC (8 years, 11 months ago) by william
File size: 1158 byte(s)
+ add logging options:
* VERBOSE_DEBUG and VERBOSE_ERROR : for debug and error messages that are very 'chatty'

1 william 81 using System;
2     using System.Collections.Generic;
3     using System.Linq;
4     using System.Text;
5     using RomCheater.PluginFramework.Core;
6 william 83 using System.Diagnostics;
7 william 88 using System.Security.Principal;
8 william 98 using RomCheater.Logging;
9 william 81
10     namespace RomCheater.CorePlugins.Config
11     {
12 william 83 public sealed class GenericConfig : ConfigPlugin
13 william 81 {
14 william 88 public GenericConfig() : base() { }
15 william 92 public GenericConfig(bool doinit) : base(doinit) { }
16 william 83
17 william 98 protected override bool IsNotValidProcess(ProcContainer p)
18     {
19 william 99 logger.VerboseDebug.WriteLine(" Allowing process {0} to be added", p.Name);
20 william 98 return false;
21     }
22 william 83 #region IPluginBase Members
23 william 94 public override Guid ID
24 william 86 {
25     get
26     {
27     return new GuidGenerator(typeof(GenericConfig).FullName).Guid;
28     }
29     }
30 william 83 public override string Name
31     {
32     get { return "Generic Configuration Plugin"; }
33     }
34     public override string Description
35     {
36     get { return "This plugin provides a generic configuration"; }
37     }
38     #endregion
39 william 81 }
40     }

  ViewVC Help
Powered by ViewVC 1.1.22