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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater.CorePlugins/Config/GenericConfig.cs	2012/05/09 22:31:56	94
+++ trunk/RomCheater.CorePlugins/Config/GenericConfig.cs	2012/06/05 11:38:32	300
@@ -1,10 +1,12 @@
-´╗┐using System;
+´╗┐//#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
 {
@@ -12,8 +14,13 @@
     {
         public GenericConfig() : base() { }
         public GenericConfig(bool doinit) : base(doinit) { }
-
-        protected override bool IsNotValidProcess(ProcContainer p) { return false; }
+        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
         {

 

  ViewVC Help
Powered by ViewVC 1.1.22