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

Comparing trunk/RomCheater/RomCheaterConfigDialog.cs (file contents):
Revision 268 by william, Sun Jun 3 19:51:54 2012 UTC vs.
Revision 269 by william, Sun Jun 3 20:40:36 2012 UTC

# Line 14 | Line 14 | namespace RomCheater
14   {
15      public partial class RomCheaterConfigDialog : Form
16      {
17 +        private loggerflags lFlags;
18 +
19          private PluginLoader loader = null;
20          public RomCheaterConfigDialog()
21          {
22              InitializeComponent();
23 +            lFlags = logger.GetLoggingFlags();
24 +            ushort flags = lFlags.Value;
25 +            if (lFlags.HasFlag(loggerflags.VERBOSE_DEBUG))
26 +            {
27 +                flags = lFlags.Value;
28 +                flags = (ushort)(lFlags.Value & ~loggerflags.VERBOSE_DEBUG.Value);
29 +                logger.SetLoggingFlags(flags);
30 +                
31 +            }
32          }
33          public RomCheaterConfigDialog(PluginLoader loader) : this()
34          {
# Line 161 | Line 172 | namespace RomCheater
172              Logging.Properties.Settings.Default.LoggingFlags = (ushort)logflags;
173              logger.Debug.WriteLine("Saved Logger flags.");
174          }
175 +
176 +        private void RomCheaterConfigDialog_FormClosing(object sender, FormClosingEventArgs e)
177 +        {
178 +            logger.SetLoggingFlags(lFlags);
179 +        }
180      }
181   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines