/[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 889 - (show annotations) (download)
Wed Sep 17 04:55:52 2014 UTC (6 years, 5 months ago) by william
File size: 1822 byte(s)


1 #region Logging Defines
2 // include this any class or method that required logging, and comment-out what is not needed
3
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 #define DISALLOW_VERBOSE_LOGGING
15 using System;
16 using System.Collections.Generic;
17 using System.Linq;
18 using System.Text;
19 using RomCheater.PluginFramework.Core;
20 using System.Diagnostics;
21 using System.Security.Principal;
22 using RomCheater.Logging;
23 using RomCheater.Interfaces;
24
25 namespace RomCheater.InterfacesPlugins.Config
26 {
27 public sealed class GenericConfig : ConfigPlugin
28 {
29 public GenericConfig() : base() { }
30 public GenericConfig(bool doinit) : base(doinit) { }
31 protected override bool IsNotValidProcess(ProcContainer p)
32 {
33 #if !DISALLOW_VERBOSE_LOGGING
34 logger.VerboseDebug.WriteLine(" Allowing process {0} to be added", p.Name);
35 #endif
36 return false;
37 }
38 #region IPluginBase Members
39 public override Guid ID
40 {
41 get
42 {
43 return new GuidGenerator(typeof(GenericConfig).FullName).Guid;
44 }
45 }
46 public override string Name
47 {
48 get { return "Generic Configuration Plugin"; }
49 }
50 public override string Description
51 {
52 get { return "This plugin provides a generic configuration"; }
53 }
54
55 public override bool IsGenericPlugin { get { return true; } }
56 public override bool IsNullPlugin { get { return false; } }
57
58 #endregion
59
60 }
61 }

  ViewVC Help
Powered by ViewVC 1.1.22