/[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 112 by william, Thu May 10 14:01:31 2012 UTC revision 114 by william, Thu May 10 14:12:09 2012 UTC
# Line 79  namespace RomCheater Line 79  namespace RomCheater
79          {          {
80              logger.Debug.WriteLine("Loading logger flags...");              logger.Debug.WriteLine("Loading logger flags...");
81              loggerflags logflags = Logging.Properties.Settings.Default.LoggingFlags;              loggerflags logflags = Logging.Properties.Settings.Default.LoggingFlags;
82    
83                if (logflags != logger.GetLoggingFlags())
84                {
85                    logflags = logger.GetLoggingFlags(); // we apparently have forced the logging flags (possible for testing)
86                }
87    
88              foreach (loggerflags flags in loggerflags.GetValues())              foreach (loggerflags flags in loggerflags.GetValues())
89              {              {
90                  if (flags == loggerflags.ALL ||                  if (flags == loggerflags.ALL ||
# Line 144  namespace RomCheater Line 150  namespace RomCheater
150          private void SaveLoggingFlags()          private void SaveLoggingFlags()
151          {          {
152              logger.Debug.WriteLine("Saving Logger flags...");              logger.Debug.WriteLine("Saving Logger flags...");
153              loggerflags logflags = loggerflags.NONE;              ushort logflags = loggerflags.NONE;
154              foreach (CheckBox cb in grpLoggingFlags_flow.Controls)              foreach (CheckBox cb in grpLoggingFlags_flow.Controls)
155              {              {
156                  if (!cb.Checked) continue;                  if (!cb.Checked) continue;

Legend:
Removed from v.112  
changed lines
  Added in v.114

  ViewVC Help
Powered by ViewVC 1.1.22