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

# Line 9 | Line 9 | using System.Windows.Forms;
9   using RomCheater.Logging;
10   using RomCheater.Properties;
11   using RomCheater.UserSettingsSupport;
12 + using RomCheater.PluginFramework.Core;
13  
14   namespace RomCheater
15   {
# Line 32 | Line 33 | namespace RomCheater
33          public Main()
34          {
35              InitializeComponent();
36 <
36 <
37 <            try
38 <            {
39 <                if (Settings.Default.UpgradeRequired)
40 <                {
41 <                    Settings.Default.Upgrade();
42 <                    Settings.Default.Reload();
43 <                    Settings.Default.UpgradeRequired = false;
44 <                    Settings.Default.Save();
45 <                }
46 <            }
47 <            catch
48 <            {
49 <                Settings.Default.Reset();
50 <            }
36 >            load_loggerflags();
37              LoggerInstance = logwriter;
38              LoggerInstance.CreateNewLog(false);
39          }
40  
41 +        private void load_loggerflags()
42 +        {
43 +            logger.SetLoggingFlags((loggerflags)Logging.Properties.Settings.Default.LoggingFlags);
44 +        }
45 +
46          private void mnuItemExit_Click(object sender, EventArgs e)
47          {
48              this.Close();
# Line 63 | Line 54 | namespace RomCheater
54          }
55  
56          private void Main_Load(object sender, EventArgs e)
57 <        {            
57 >        {
58 >            PluginLoader loader = new PluginLoader();
59 >            loader.LoadPlugins();
60          }
61  
62          private void mnuItemConfig_Click(object sender, EventArgs e)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines