/[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 300 - (hide annotations) (download)
Tue Jun 5 11:38:32 2012 UTC (8 years, 8 months ago) by william
File size: 1299 byte(s)
+ turn back on verbose logging in these classes for performance testing

1 william 300 //#define DISALLOW_VERBOSE_LOGGING // when defined will disallow verbose logging for performance reasons
2 william 151 using System;
3 william 81 using System.Collections.Generic;
4     using System.Linq;
5     using System.Text;
6     using RomCheater.PluginFramework.Core;
7 william 83 using System.Diagnostics;
8 william 88 using System.Security.Principal;
9 william 98 using RomCheater.Logging;
10 william 81
11     namespace RomCheater.CorePlugins.Config
12     {
13 william 83 public sealed class GenericConfig : ConfigPlugin
14 william 81 {
15 william 88 public GenericConfig() : base() { }
16 william 92 public GenericConfig(bool doinit) : base(doinit) { }
17 william 147 protected override bool IsNotValidProcess(ProcContainer p)
18 william 98 {
19 william 151 #if !DISALLOW_VERBOSE_LOGGING
20 william 99 logger.VerboseDebug.WriteLine(" Allowing process {0} to be added", p.Name);
21 william 151 #endif
22 william 147 return false;
23 william 98 }
24 william 83 #region IPluginBase Members
25 william 94 public override Guid ID
26 william 86 {
27     get
28     {
29     return new GuidGenerator(typeof(GenericConfig).FullName).Guid;
30     }
31     }
32 william 83 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 william 81 }
42     }

  ViewVC Help
Powered by ViewVC 1.1.22