/[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 414 - (hide annotations) (download)
Fri Jun 22 08:21:18 2012 UTC (9 years, 3 months ago) by william
File size: 1626 byte(s)

1 william 414 #region Logging Defines
2     // include this any class or method that required logging, and comment-out what is not needed
3     #define LOGGING_ENABLED
4     #region Enabled logging levels
5     #define LOGGING_ENABLE_INFO
6     #define LOGGING_ENABLE_WARN
7     #define LOGGING_ENABLE_DEBUG
8     //#define LOGGING_ENABLE_VERBOSEDEBUG
9     #define LOGGING_ENABLE_ERROR
10     #define LOGGING_ENABLE_VERBOSEERROR
11     #define LOGGING_ENABLE_PROFILER
12     #endregion
13     #endregion
14 william 151 using System;
15 william 81 using System.Collections.Generic;
16     using System.Linq;
17     using System.Text;
18     using RomCheater.PluginFramework.Core;
19 william 83 using System.Diagnostics;
20 william 88 using System.Security.Principal;
21 william 98 using RomCheater.Logging;
22 william 81
23     namespace RomCheater.CorePlugins.Config
24     {
25 william 83 public sealed class GenericConfig : ConfigPlugin
26 william 81 {
27 william 88 public GenericConfig() : base() { }
28 william 92 public GenericConfig(bool doinit) : base(doinit) { }
29 william 147 protected override bool IsNotValidProcess(ProcContainer p)
30 william 98 {
31 william 151 #if !DISALLOW_VERBOSE_LOGGING
32 william 99 logger.VerboseDebug.WriteLine(" Allowing process {0} to be added", p.Name);
33 william 151 #endif
34 william 147 return false;
35 william 98 }
36 william 83 #region IPluginBase Members
37 william 94 public override Guid ID
38 william 86 {
39     get
40     {
41     return new GuidGenerator(typeof(GenericConfig).FullName).Guid;
42     }
43     }
44 william 83 public override string Name
45     {
46     get { return "Generic Configuration Plugin"; }
47     }
48     public override string Description
49     {
50     get { return "This plugin provides a generic configuration"; }
51     }
52 william 389 #endregion
53 william 81 }
54     }

  ViewVC Help
Powered by ViewVC 1.1.22