1 |
william |
414 |
#region Logging Defines |
2 |
|
|
// include this any class or method that required logging, and comment-out what is not needed |
3 |
william |
415 |
|
4 |
william |
414 |
#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 |
william |
692 |
#define DISALLOW_VERBOSE_LOGGING |
15 |
william |
151 |
using System; |
16 |
william |
81 |
using System.Collections.Generic; |
17 |
|
|
using System.Linq; |
18 |
|
|
using System.Text; |
19 |
|
|
using RomCheater.PluginFramework.Core; |
20 |
william |
83 |
using System.Diagnostics; |
21 |
william |
88 |
using System.Security.Principal; |
22 |
william |
98 |
using RomCheater.Logging; |
23 |
william |
686 |
using RomCheater.Core; |
24 |
william |
81 |
|
25 |
|
|
namespace RomCheater.CorePlugins.Config |
26 |
|
|
{ |
27 |
william |
83 |
public sealed class GenericConfig : ConfigPlugin |
28 |
william |
81 |
{ |
29 |
william |
88 |
public GenericConfig() : base() { } |
30 |
william |
92 |
public GenericConfig(bool doinit) : base(doinit) { } |
31 |
william |
147 |
protected override bool IsNotValidProcess(ProcContainer p) |
32 |
william |
98 |
{ |
33 |
william |
151 |
#if !DISALLOW_VERBOSE_LOGGING |
34 |
william |
99 |
logger.VerboseDebug.WriteLine(" Allowing process {0} to be added", p.Name); |
35 |
william |
151 |
#endif |
36 |
william |
147 |
return false; |
37 |
william |
98 |
} |
38 |
william |
83 |
#region IPluginBase Members |
39 |
william |
94 |
public override Guid ID |
40 |
william |
86 |
{ |
41 |
|
|
get |
42 |
|
|
{ |
43 |
|
|
return new GuidGenerator(typeof(GenericConfig).FullName).Guid; |
44 |
|
|
} |
45 |
|
|
} |
46 |
william |
83 |
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 |
william |
590 |
|
55 |
william |
682 |
public override bool IsGenericPlugin { get { return true; } } |
56 |
|
|
public override bool IsNullPlugin { get { return false; } } |
57 |
william |
590 |
|
58 |
|
|
#endregion |
59 |
|
|
|
60 |
william |
81 |
} |
61 |
|
|
} |