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

Diff of /trunk/RomCheater/RomCheaterConfigDialog.cs

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

revision 268 by william, Sun Jun 3 19:51:54 2012 UTC revision 269 by william, Sun Jun 3 20:40:36 2012 UTC
# Line 14  namespace RomCheater Line 14  namespace RomCheater
14  {  {
15      public partial class RomCheaterConfigDialog : Form      public partial class RomCheaterConfigDialog : Form
16      {      {
17            private loggerflags lFlags;
18    
19          private PluginLoader loader = null;          private PluginLoader loader = null;
20          public RomCheaterConfigDialog()          public RomCheaterConfigDialog()
21          {          {
22              InitializeComponent();              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()          public RomCheaterConfigDialog(PluginLoader loader) : this()
34          {          {
# Line 161  namespace RomCheater Line 172  namespace RomCheater
172              Logging.Properties.Settings.Default.LoggingFlags = (ushort)logflags;              Logging.Properties.Settings.Default.LoggingFlags = (ushort)logflags;
173              logger.Debug.WriteLine("Saved Logger flags.");              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  }  }

Legend:
Removed from v.268  
changed lines
  Added in v.269

  ViewVC Help
Powered by ViewVC 1.1.22