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

Diff of /trunk/RomCheater/RomCheaterConfigDialog.cs

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

--- trunk/RomCheater/RomCheaterConfigDialog.cs	2012/06/03 19:53:43	268
+++ trunk/RomCheater/RomCheaterConfigDialog.cs	2012/06/03 20:40:36	269
@@ -14,10 +14,21 @@
 {
     public partial class RomCheaterConfigDialog : Form
     {
+        private loggerflags lFlags;
+
         private PluginLoader loader = null;
         public RomCheaterConfigDialog()
         {
             InitializeComponent();
+            lFlags = logger.GetLoggingFlags();
+            ushort flags = lFlags.Value;
+            if (lFlags.HasFlag(loggerflags.VERBOSE_DEBUG))
+            {
+                flags = lFlags.Value;
+                flags = (ushort)(lFlags.Value & ~loggerflags.VERBOSE_DEBUG.Value);
+                logger.SetLoggingFlags(flags);
+                
+            }
         }
         public RomCheaterConfigDialog(PluginLoader loader) : this()
         {
@@ -161,5 +172,10 @@
             Logging.Properties.Settings.Default.LoggingFlags = (ushort)logflags;
             logger.Debug.WriteLine("Saved Logger flags.");
         }
+
+        private void RomCheaterConfigDialog_FormClosing(object sender, FormClosingEventArgs e)
+        {
+            logger.SetLoggingFlags(lFlags);
+        }
     }
 }

 

  ViewVC Help
Powered by ViewVC 1.1.22