#define DISALLOW_VERBOSE_LOGGING // when defined will disallow verbose logging for performance reasons using System; using System.Collections.Generic; using System.Linq; using System.Text; using RomCheater.PluginFramework.Core; using System.Diagnostics; using System.Security.Principal; using RomCheater.Logging; namespace RomCheater.CorePlugins.Config { public sealed class GenericConfig : ConfigPlugin { public GenericConfig() : base() { } public GenericConfig(bool doinit) : base(doinit) { } protected override bool IsNotValidProcess(ProcContainer p) { #if !DISALLOW_VERBOSE_LOGGING logger.VerboseDebug.WriteLine(" Allowing process {0} to be added", p.Name); #endif return false; } #region IPluginBase Members public override Guid ID { get { return new GuidGenerator(typeof(GenericConfig).FullName).Guid; } } public override string Name { get { return "Generic Configuration Plugin"; } } public override string Description { get { return "This plugin provides a generic configuration"; } } #endregion } }