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

Comparing trunk/RomCheater/Main.cs (file contents):
Revision 82 by william, Wed May 9 16:45:44 2012 UTC vs.
Revision 83 by william, Wed May 9 17:48:15 2012 UTC

--- trunk/RomCheater/Main.cs	2012/05/09 17:48:05	82
+++ trunk/RomCheater/Main.cs	2012/05/09 17:48:15	83
@@ -9,6 +9,7 @@ using System.Windows.Forms;
 using RomCheater.Logging;
 using RomCheater.Properties;
 using RomCheater.UserSettingsSupport;
+using RomCheater.PluginFramework.Core;
 
 namespace RomCheater
 {
@@ -32,26 +33,16 @@ namespace RomCheater
         public Main()
         {
             InitializeComponent();
-
-
-            try
-            {
-                if (Settings.Default.UpgradeRequired)
-                {
-                    Settings.Default.Upgrade();
-                    Settings.Default.Reload();
-                    Settings.Default.UpgradeRequired = false;
-                    Settings.Default.Save();
-                }
-            }
-            catch
-            {
-                Settings.Default.Reset();
-            }
+            load_loggerflags();
             LoggerInstance = logwriter;
             LoggerInstance.CreateNewLog(false);
         }
 
+        private void load_loggerflags()
+        {
+            logger.SetLoggingFlags((loggerflags)Logging.Properties.Settings.Default.LoggingFlags);
+        }
+
         private void mnuItemExit_Click(object sender, EventArgs e)
         {
             this.Close();
@@ -63,7 +54,9 @@ namespace RomCheater
         }
 
         private void Main_Load(object sender, EventArgs e)
-        {            
+        {
+            PluginLoader loader = new PluginLoader();
+            loader.LoadPlugins();
         }
 
         private void mnuItemConfig_Click(object sender, EventArgs e)