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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 151 - (show annotations) (download)
Mon May 28 00:17:16 2012 UTC (8 years, 6 months ago) by william
File size: 1297 byte(s)

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

  ViewVC Help
Powered by ViewVC 1.1.22