/[RomCheater]/trunk/RomCheater/Main.cs
ViewVC logotype

Diff of /trunk/RomCheater/Main.cs

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

--- trunk/RomCheater/Main.cs	2012/05/09 16:45:44	69
+++ trunk/RomCheater/Main.cs	2012/05/09 17:48:15	83
@@ -9,6 +9,7 @@
 using RomCheater.Logging;
 using RomCheater.Properties;
 using RomCheater.UserSettingsSupport;
+using RomCheater.PluginFramework.Core;
 
 namespace RomCheater
 {
@@ -32,26 +33,16 @@
         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 @@
         }
 
         private void Main_Load(object sender, EventArgs e)
-        {            
+        {
+            PluginLoader loader = new PluginLoader();
+            loader.LoadPlugins();
         }
 
         private void mnuItemConfig_Click(object sender, EventArgs e)

 

  ViewVC Help
Powered by ViewVC 1.1.22