ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.CorePlugins/Config/GenericConfig.cs
Revision: 310
Committed: Tue Jun 5 14:09:01 2012 UTC (11 years ago) by william
File size: 1297 byte(s)
Log Message:
+ turn off VERBOSE LOGGING in these classes again

File Contents

# User Rev Content
1 william 310 #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     }