/[RomCheater]/trunk/RomCheater.PluginFramework/Core/ConfigPlugin.cs
ViewVC logotype

Diff of /trunk/RomCheater.PluginFramework/Core/ConfigPlugin.cs

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

--- trunk/RomCheater.PluginFramework/Core/ConfigPlugin.cs	2012/05/09 21:02:31	91
+++ trunk/RomCheater.PluginFramework/Core/ConfigPlugin.cs	2012/05/09 21:42:21	92
@@ -13,8 +13,13 @@
     /// </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>();

 

  ViewVC Help
Powered by ViewVC 1.1.22