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

Comparing trunk/RomCheater/Main.cs (file contents):
Revision 814 by william, Tue Apr 15 15:58:50 2014 UTC vs.
Revision 815 by william, Tue Apr 15 16:34:03 2014 UTC

# Line 453 | Line 453 | namespace RomCheater
453          private void load_loggerflags()
454          {
455   #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();
456 >
457 >            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
467              logging_level = LogLevel.kLogLevel_All;
468   #endif            

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines