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

Diff of /trunk/RomCheater/Main.cs

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

revision 814 by william, Tue Apr 15 15:58:50 2014 UTC revision 815 by william, Tue Apr 15 16:34:03 2014 UTC
# Line 453  namespace RomCheater Line 453  namespace RomCheater
453          private void load_loggerflags()          private void load_loggerflags()
454          {          {
455  #warning LoggingFlags setting needs to be changed to Uint32 instead of Uint16  #warning LoggingFlags setting needs to be changed to Uint32 instead of Uint16
456              logging_level = (LogLevel)(Logging.Properties.Settings.Default.LoggingFlags);              
457             logging_level = new LoggingFlagsConverter(Logging.Properties.Settings.Default.LoggingFlags).ConvertFlags();              bool upgraded_flags = Logging.Properties.Settings.Default.UpgradedLogLevel;
458                if (!upgraded_flags)
459                {
460                    logging_level = new LoggingFlagsConverter(Logging.Properties.Settings.Default.LoggingFlags).ConvertFlags();
461                    Logging.Properties.Settings.Default.UpgradedLogLevel = true;
462                    Logging.Properties.Settings.Default.gLogLoggingFlags = (uint)logging_level;
463                    Logging.Properties.Settings.Default.Save();
464                }
465                 logging_level = (LogLevel)Logging.Properties.Settings.Default.gLogLoggingFlags;
466  #if FORCE_ALL_LOGGING_FLAGS  #if FORCE_ALL_LOGGING_FLAGS
467              logging_level = LogLevel.kLogLevel_All;              logging_level = LogLevel.kLogLevel_All;
468  #endif              #endif            

Legend:
Removed from v.814  
changed lines
  Added in v.815

  ViewVC Help
Powered by ViewVC 1.1.22