/[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 21:42:21	92
+++ trunk/RomCheater.CorePlugins/Config/GenericConfig.cs	2013/06/17 08:27:34	682
@@ -1,10 +1,24 @@
-´╗┐using System;
+´╗┐#region Logging Defines
+// include this any class or method that required logging, and comment-out what is not needed
+
+#region Enabled logging levels
+#define LOGGING_ENABLE_INFO
+#define LOGGING_ENABLE_WARN
+#define LOGGING_ENABLE_DEBUG
+//#define LOGGING_ENABLE_VERBOSEDEBUG
+#define LOGGING_ENABLE_ERROR
+#define LOGGING_ENABLE_VERBOSEERROR
+#define LOGGING_ENABLE_PROFILER
+#endregion
+#endregion
+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,10 +26,15 @@
     {
         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
+        public override Guid ID
         {
             get
             {
@@ -30,6 +49,11 @@
         {
             get { return "This plugin provides a generic configuration"; }
         }
+
+        public override bool IsGenericPlugin { get { return true; } }
+        public override bool IsNullPlugin { get { return false; } }
+        
         #endregion
+
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22