ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.PluginFramework/Core/ConfigPlugin.cs
(Generate patch)

Comparing trunk/RomCheater.PluginFramework/Core/ConfigPlugin.cs (file contents):
Revision 88 by william, Wed May 9 20:52:20 2012 UTC vs.
Revision 92 by william, Wed May 9 21:42:21 2012 UTC

--- trunk/RomCheater.PluginFramework/Core/ConfigPlugin.cs	2012/05/09 20:52:20	88
+++ trunk/RomCheater.PluginFramework/Core/ConfigPlugin.cs	2012/05/09 21:42:21	92
@@ -13,8 +13,13 @@ namespace RomCheater.PluginFramework.Cor
     /// </summary>
     public abstract class ConfigPlugin : PluginBase, IConfigPlugin
     {
-        public ConfigPlugin() : base() { this.ValidProcessesForPlugin = new List<ProcContainer>(); init(); }
+        public ConfigPlugin() : this(false) { }
+        public ConfigPlugin(bool doinit) : base() { this.ValidProcessesForPlugin = new List<ProcContainer>(); if(doinit) init(); }
 
+        public override void Reload()
+        {
+            init();
+        }
         private void init()
         {
             List<ProcContainer> proc_list = new List<ProcContainer>();